Dead check #38
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: Dead check | |
run-name: Dead check | |
on: | |
workflow_dispatch: | |
schedule: | |
# Daily at 1am (GMT+8) | |
- cron: '0 17 * * *' | |
jobs: | |
dead-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # Run using PAT to correctly trigger build workfow | |
- name: dead.sh | |
run: bash dead.sh | |
- name: Push | |
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 "Dead check" | |
git push -q |