Skip to content

Commit 501c0c1

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/analysis_workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ 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+
if: github.ref == 'refs/heads/master' && github.head_ref == '' # head_ref is empty for commits pushed to PR event
5959
needs: [benchmark_commits]
6060
runs-on: ubuntu-22.04
6161
container:

0 commit comments

Comments
 (0)