action #2490
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: action | |
on: | |
schedule: | |
- cron: "0 0,2,4,6,8,10,12,14,16,18,20,22 * * *" | |
workflow_dispatch: | |
env: | |
TZ: Asia/Shanghai | |
jobs: | |
Crawler: | |
name: action | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Update UPDATE.md | |
run: | | |
echo "Last update: $(date +'%Y-%m-%d %H:%M:%S')" > UPDATE.md | |
git pull origin main | |
git config --local user.email "[email protected]" | |
git config --local user.name "TNXG" | |
git add . | |
git commit -m "Last update: $(date +'%Y-%m-%d %H:%M:%S')" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} | |
branch: main | |
- name: keep alive | |
uses: gautamkrishnar/keepalive-workflow@master |