Skip to content

AC record schedule #22630

AC record schedule

AC record schedule #22630

name: AC record schedule
on:
schedule:
# 0时区每小时的50分启动
- cron: '50 * * * *'
jobs:
ac_record:
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai # 时区
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install --immutable
- name: Run LeetCode
run: |
git pull
yarn run ac_record
git pull
- name: Update GitHub
run: |
git config --local user.email "[email protected]"
git config --local user.name "Anonymity94-Bot"
git remote set-url origin https://${{ github.actor }}:${{ secrets.ACCESS_TOKEN }}@github.com/${{ github.repository }}
git add .
git commit -m "ci: update by github action"
git push