Skip to content

Commit 28cb9a0

Browse files
authored
ci: bench: fix master not schedule, fix commit status failed on external repo (#6365)
1 parent cfc4d75 commit 28cb9a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/bench.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
RUNNER_LABEL: Standard_NC4as_T4_v3 # FIXME Do not find a way to not duplicate it
4343
N_USERS: 8
4444
DURATION: 10m
45-
if: ${{ github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3' || github.event.schedule || github.event.pull_request || github.event.push.ref == 'refs/heads/master' }}
45+
if: ${{ github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3' || github.event.schedule || github.event.pull_request || github.head_ref == 'master' || github.ref_name == 'master' || github.event.push.ref == 'refs/heads/master' }}
4646
steps:
4747
- name: Clone
4848
id: checkout
@@ -143,6 +143,7 @@ jobs:
143143
144144
- name: Commit status
145145
uses: Sibz/github-status-action@v1
146+
continue-on-error: true # If not authorized on external repo
146147
with:
147148
authToken: ${{secrets.GITHUB_TOKEN}}
148149
sha: ${{ inputs.sha || github.event.pull_request.head.sha || github.sha }}

0 commit comments

Comments
 (0)