Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rnmeow/quote-box
- Owner: rnmeow
- License: mit
- Created: 2022-05-08T08:31:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-27T04:51:24.000Z (8 months ago)
- Last Synced: 2024-05-30T02:16:54.350Z (8 months ago)
- Topics: api, gist, gistbox, gists, github, github-actions, hitokoto, javascript, quotable, quote, quotes, typescript, workflow
- Language: TypeScript
- Homepage: https://api.quotable.io
- Size: 609 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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 Quoteon:
workflow_dispatch:
schedule:
- cron: 0 0 * * * # execution frequency and timejobs:
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).