Check lists #191
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: Check lists | |
run-name: Check lists | |
on: | |
workflow_dispatch: | |
schedule: | |
# Daily at 12am (GMT+8) | |
- cron: '0 16 * * *' | |
jobs: | |
check-lists: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: check.sh | |
run: bash check.sh | |
- name: Push | |
if: always() | |
run: | | |
git config user.email ${{ vars.GIT_EMAIL }} | |
git config user.name ${{ vars.GIT_USERNAME }} | |
git add . | |
git diff-index --quiet HEAD || git commit -m "Check lists" | |
git push -q |