Update Readme #392
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 工作流名称 | |
name: Update Readme | |
# 工作流触发时机, see: https://docs.github.com/zh/actions/using-workflows/triggering-a-workflow | |
# 触发条件修改为: 当 main 分支有 push 操作 || 每天 0 点 | |
on: | |
schedule: | |
- cron: '30 22 * * *' | |
push: | |
branches: | |
- master | |
- feature/zhihu | |
- feature/yuque | |
- feature/segmentfault | |
# 作业, see: https://docs.github.com/zh/actions/using-jobs/using-jobs-in-a-workflow | |
jobs: | |
# 插入掘金列表, 使用 baozouai/multi-platform-posts-action 生成文章列表, see: https://github.com/baozouai/multi-platform-posts-action | |
juejin-posts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Append Juejin Posts List 📚 | |
uses: baozouai/multi-platform-posts-action@main | |
with: | |
user_id: "3526889034488174" | |
platform: juejin | |
- run: | | |
git pull | |
- name: Push to GitHub | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions | |
message: 'juejin-posts' | |
# 成统计图, see: https://github.com/lowlighter/metrics | |
github-metrics: | |
runs-on: ubuntu-latest | |
steps: | |
- name: metrics-Half-year-calendar | |
uses: lowlighter/metrics@latest | |
with: | |
base: "" | |
filename: assets/metrics.plugin.isocalendar.svg | |
token: ${{ github.token }} | |
plugin_isocalendar: yes |