Skip to content

Commit 04a1f2f

Browse files
committed
update known good
1 parent 191afbb commit 04a1f2f

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed
Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,41 @@
1-
name: update env
1+
name: Update KNOWN_GOOD_BLOCK_NUMBERS
22

33
on:
44
workflow_dispatch:
55
# schedule:
66
# - cron: '0 */6 * * *'
7-
push:
8-
branches: [ add-env ]
97

10-
# env:
11-
# DB_PATH: ./db.sqlite
8+
env:
9+
DB_PATH: ./db.sqlite
10+
GH_TOKEN: ${{ github.token }}
1211

1312
permissions:
1413
contents: write # required for push commit
1514
pull-requests: write # required for create pr
1615

1716
jobs:
18-
update-env:
17+
update:
1918
runs-on: ubuntu-latest
2019
steps:
2120
- uses: actions/checkout@v4
2221
with:
2322
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
3023
- name: setup node env
3124
uses: actions/setup-node@v4
3225
with:
3326
node-version: 18.x
3427
cache: 'yarn'
3528
- run: yarn --immutable
3629
- run: yarn update-known-good
37-
- run: yarn test polkadot -u
30+
- run: yarn test
3831
- name: Commit and push changes
3932
run: |
4033
git config --global user.name 'github-actions[bot]'
4134
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
4336
if ! git diff --cached --quiet; then
4437
git commit -m "[CI Skip] Update KNOWN_GOOD_BLOCK_NUMBERS"
4538
git push
4639
else
4740
echo "No changes to commit"
4841
fi
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

0 commit comments

Comments
 (0)