Skip to content

Commit 5c63ed8

Browse files
committed
Skip gh-pages fetch on main when branch does not exist yet
The github-action-benchmark action crashes fetching a non-existent gh-pages branch. Use skip-fetch-gh-pages dynamically based on the baseline existence check so the first run creates the branch from scratch.
1 parent a303630 commit 5c63ed8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
github-token: ${{ secrets.GITHUB_TOKEN }}
105105
auto-push: true
106106
save-data-file: true
107+
skip-fetch-gh-pages: ${{ steps.baseline.outputs.exists != 'true' }}
107108
summary-always: true
108109
comment-on-alert: true
109110
fail-on-alert: false

0 commit comments

Comments
 (0)