自动生成首页Readme中的脚本文件清单,无需再人工修改,请勿删除Readme中隐藏状态的标记行。

This commit is contained in:
EvineDeng
2021-01-24 15:50:08 +08:00
parent 6bedd599ab
commit 866dc3ba24
3 changed files with 72 additions and 5 deletions

35
.github/workflows/update_list.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: update_list
on:
workflow_dispatch:
schedule:
- cron: '1 5,17 * * *'
repository_dispatch:
types: update_list
#push:
# branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
- name: "更新Readme中脚本清单列表"
run: |
bash update_list.sh
- name: commit
run: |
git config --global user.email ${{ secrets.EMAIL }}
git config --global user.name lxk0301
git add .
git commit -m "更新Readme中脚本清单列表 by lxk0301 Github Action" -a || echo "Nothing to update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN }}
branch: master