Skip to content

action

action #2497

Workflow file for this run

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