-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (64 loc) · 1.78 KB
/
check-node.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Check
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
build:
if: github.event_name != 'push' && github.event_name != 'schedule'
uses: SlashNephy/.github/.github/workflows/yarn-run.yml@master
permissions:
contents: read
with:
script: build
lint:
if: github.event_name != 'schedule'
uses: SlashNephy/.github/.github/workflows/yarn-lint.yml@master
permissions:
contents: read
pull-requests: write
format:
if: github.event_name == 'push'
uses: SlashNephy/.github/.github/workflows/yarn-format.yml@master
permissions:
contents: write
with:
use-custom-token: true
secrets:
github-token: '${{ secrets.GH_PAT }}'
update:
if: github.event_name == 'push' || github.event_name == 'schedule'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: '${{ secrets.GH_PAT }}'
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: yarn
cache-dependency-path: yarn.lock
- name: Install
run: yarn install --immutable
- name: Generate
run: yarn generate
env:
ANNICT_ACCESS_TOKEN: '${{ secrets.ANNICT_ACCESS_TOKEN }}'
# ARM_COMMIT_SHA: 'c10d04d07eff16e3cdf6a2f2b70217ba1eb3913f'
- name: Pull
run: git pull
- name: Push
uses: stefanzweifel/git-auto-commit-action@v5
continue-on-error: true
with:
commit_message: '🪄 update database'
commit_author: 'StarryBlueSky-bot <97773209+StarryBlueSky-bot@users.noreply.github.com>'