Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rnmeow/quote-box

Get a quote and push to GitHub Gist. API from Quotable.
https://github.com/rnmeow/quote-box

api gist gistbox gists github github-actions hitokoto javascript quotable quote quotes typescript workflow

Last synced: 2 months ago
JSON representation

Get a quote and push to GitHub Gist. API from Quotable.

Awesome Lists containing this project

README

        

# quote-box

![GitHub Release](https://badgen.net/github/release/rnmeow/quote-box)

Receive a random quote, and pushes to [Gist](https://gist.github.com) with GitHub Actions.

The quotes' API is provided by [Quotable](https://github.com/lukePeavey/quotable).

> [!TIP]
> *For more “pinned gists” projects, visit*
> *.*

## Usage

Use a GitHub Actions workflow to execute `quote-box`. Here's an example:

```yaml
name: Get Quote

on:
workflow_dispatch:
schedule:
- cron: 0 0 * * * # execution frequency and time

jobs:
push:
runs-on: ubuntu-22.04
steps:
- name: Download and Push
uses: rnmeow/[email protected]
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }} # *
# Settings
with:
gist_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # *
gist_file_name: Quote # *
tags: technology # ref. https://api.quotable.io/tags
min_length: 10
max_length: 80
time_zone: Asia/Taipei
```

## License

(C) 2023, 2024, Connor Kuo. [MIT License](https://github.com/rnmeow/quote-box/blob/master/LICENSE.txt).