-
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (35 loc) · 985 Bytes
/
daily.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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