Skip to content

Commit a5f70aa

Browse files
committed
ci: reset local gh-pages between benchmark steps to avoid fetch conflict
1 parent bcc455d commit a5f70aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ jobs:
9999
fail-on-alert: true
100100
comment-on-alert: true
101101

102+
# delete local gh-pages so the next benchmark action step fetches fresh from remote
103+
- name: Reset local gh-pages branch
104+
run: git branch -D gh-pages || true
105+
102106
- name: Store Block Executor result
103107
uses: benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
104108
with:
@@ -112,6 +116,10 @@ jobs:
112116
fail-on-alert: true
113117
comment-on-alert: true
114118

119+
# delete local gh-pages so the next benchmark action step fetches fresh from remote
120+
- name: Reset local gh-pages branch
121+
run: git branch -D gh-pages || true
122+
115123
- name: Store Spamoor Trace result
116124
uses: benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
117125
with:

0 commit comments

Comments
 (0)