CI #1097
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: CI | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "24 8 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- uses: actions/cache@v2 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- uses: nick-fields/retry@v3 | |
name: Fetch events | |
with: | |
timeout_minutes: 10 | |
max_attempts: 3 | |
retry_on: error | |
command: |- | |
sudo timedatectl set-timezone Asia/Shanghai | |
yarn | |
yarn start | |
- name: Commit and push | |
run: |- | |
git config --global user.email "[email protected]" && git config --global user.name "Willin Bot" | |
git add . && git commit -m ":memo: Update Data" || exit 0 | |
git push |