Skip to content

Commit 12eca02

Browse files
committed
Fix for benchmark result trying to be published before merged
1 parent fd0ec5d commit 12eca02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/analysis_workflow.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ jobs:
5555

5656
publish_benchmark_results_to_gh_pages:
5757
name: Publish benchmark results to gh-pages
58-
if: github.ref == 'refs/heads/master'
58+
# head_ref is empty for commits pushed to PR event
59+
if: github.ref == 'refs/heads/master' && github.head_ref == ''
5960
needs: [benchmark_commits]
6061
runs-on: ubuntu-22.04
6162
container:

0 commit comments

Comments
 (0)