You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
quote-box
1.0.0
下載一則隨機的語錄,格式化後利用 GitHub Actions 推送到 Gist。
語錄 API 由 言雅 Elegent TW 提供。
PS. 若想了解更多「置頂 Gist」專案,請參見
https://github.com/matchai/awesome-pinned-gists
使用 GitHub Actions 作業流程來推送至 Gist,以下為一個範例:
name: Get Quote
on:
push:
branches:
- master
schedule:
- cron: 0 0 * * * # 每天執行
jobs:
push:
runs-on: ubuntu-22.04
steps:
- name: Download and Push
uses: rnmeow/[email protected]
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }} # 須自行產生
with:
gist_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # 須設定
gist_file_name: 🌧 Quote # 可設定,或使用預設值
# Authored by Yu-huan Kuo, licensed under MIT License.
Copyright (C) 2023, 2024 Yu-huan Kuo, licensed under MIT License.