Skip to content

Commit 998597e

Browse files
committed
fix: workflow syntax
1 parent bd59fdc commit 998597e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/update-chains.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ jobs:
2121
- name: Install dependencies
2222
run: yarn install
2323

24+
- name: Install ts-node
25+
run: yarn global add ts-node
26+
2427
- name: Update chains data
25-
run: ts-node -O '{ "module": "commonjs" }' src/scripts/update-chains.ts
28+
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/update-chains.ts
2629

2730
- name: Commit changes
2831
id: commit-changes
@@ -32,8 +35,9 @@ jobs:
3235
BRANCH_NAME=update-chains-$(date +%Y%m%dT%H%M%S)
3336
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
3437
git checkout -b $BRANCH_NAME
35-
git add .
38+
git add -A
3639
git commit -m 'Update chains data'
40+
git push origin $BRANCH_NAME
3741
3842
- name: Create Pull Request
3943
uses: peter-evans/create-pull-request@v3

0 commit comments

Comments
 (0)