File tree 1 file changed +7
-16
lines changed
1 file changed +7
-16
lines changed Original file line number Diff line number Diff line change 1
- name : update env
1
+ name : Update KNOWN_GOOD_BLOCK_NUMBERS
2
2
3
3
on :
4
4
workflow_dispatch :
5
5
# schedule:
6
6
# - cron: '0 */6 * * *'
7
- push :
8
- branches : [ add-env ]
9
7
10
- # env:
11
- # DB_PATH: ./db.sqlite
8
+ env :
9
+ DB_PATH : ./db.sqlite
10
+ GH_TOKEN : ${{ github.token }}
12
11
13
12
permissions :
14
13
contents : write # required for push commit
15
14
pull-requests : write # required for create pr
16
15
17
16
jobs :
18
- update-env :
17
+ update :
19
18
runs-on : ubuntu-latest
20
19
steps :
21
20
- uses : actions/checkout@v4
22
21
with :
23
22
submodules : recursive
24
- - name : setup node
25
- uses : actions/setup-node@v4
26
- with :
27
- node-version : 18.x
28
- - name : Setup yarn
29
- run : npm install -g yarn
30
23
- name : setup node env
31
24
uses : actions/setup-node@v4
32
25
with :
33
26
node-version : 18.x
34
27
cache : ' yarn'
35
28
- run : yarn --immutable
36
29
- run : yarn update-known-good
37
- - run : yarn test polkadot -u
30
+ - run : yarn test
38
31
- name : Commit and push changes
39
32
run : |
40
33
git config --global user.name 'github-actions[bot]'
41
34
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
42
- git add -A
35
+ git add KNOWN_GOOD_BLOCK_NUMBERS.env
43
36
if ! git diff --cached --quiet; then
44
37
git commit -m "[CI Skip] Update KNOWN_GOOD_BLOCK_NUMBERS"
45
38
git push
46
39
else
47
40
echo "No changes to commit"
48
41
fi
49
- env :
50
- GITHUB_TOKEN : ${{ secrets.GH_PAT }}
You can’t perform that action at this time.
0 commit comments