Skip to content

Commit 315f275

Browse files
committed
fix(ci): explicitly push before creating PR
1 parent 9253786 commit 315f275

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/nightly-benchmark.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
- name: Checkout
7171
uses: actions/checkout@v4
7272

73-
- run: |
73+
- name: Parse benchmark results and create PR
74+
run: |
7475
jq --argjson benchmark_results "$benchmark_results" \
7576
'.consensus_parameters.${{ env.CONSENSUS_PARAMETERS_VERSION }}.gas_costs = $benchmark_results' \
7677
bin/fuel-core/chainspec/local-testnet/chain_config.json > \
@@ -83,6 +84,9 @@ jobs:
8384
git config user.name 'github-actions[bot]'
8485
git config user.email 'github-actions[bot]@users.noreply.github.com'
8586
git commit -m "Update benchmark results"
87+
88+
git push origin "$branch_name"
89+
8690
# create a new PR
8791
gh pr create \
8892
--title "chore(gas_costs): update local chain config with nightly benchmark results" \

0 commit comments

Comments
 (0)