AC record schedule #32674
This file contains hidden or 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: 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 add_user_from_issue | |
| yarn run ac_record | |
| git pull | |
| - name: Update GitHub | |
| run: | | |
| git config --local user.email "879241805@qq.com" | |
| 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 |