-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 875 Bytes
/
schedule.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
name: schedule
on:
schedule:
- cron: "0 0 * * *"
push:
branches: [master, main]
jobs:
build:
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Set node
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Update image
run: |
git config --local user.email "bot@github.com"
git config --local user.name "github"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git pull --rebase
cd ./script
npx pnpm install --no-frozen-lockfile
npx pnpm run test
cd ../
git add .
git commit -m "update by github action" --allow-empty
git push -f