Skip to content

Commit f4b4358

Browse files
committed
feat: update gas snapshot workflow to trigger on merge
1 parent cc6f704 commit f4b4358

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/gas-snapshot-update.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
name: Update Gas Snapshot on Push
1+
name: Update Gas Snapshot on Merge
22

33
on:
44
push:
5+
branches:
6+
- develop # ToDo: change develop to main when main branch is ready
57
paths:
68
- 'src/**'
79
- 'test/**'
@@ -17,7 +19,7 @@ jobs:
1719
- name: Checkout repository
1820
uses: actions/checkout@v4
1921
with:
20-
ref: ${{ github.head_ref }}
22+
ref: ${{ github.ref }}
2123

2224
- name: Setup Node.js
2325
uses: actions/setup-node@v4
@@ -35,3 +37,4 @@ jobs:
3537
with:
3638
commit_message: "chore(gas): update .gas-snapshot [skip ci]"
3739
file_pattern: .gas-snapshot
40+
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)