Skip to content

Commit c3d9d70

Browse files
authored
correct github.event usage
1 parent 5e8ca26 commit c3d9d70

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/bench.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,20 @@ jobs:
5353
pr_comment_enabled: "true"
5454

5555
if: |
56-
github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3'
56+
inputs.gpu-series == 'Standard_NC4as_T4_v3'
5757
|| (
58-
github.event.schedule
58+
github.event_name == 'schedule'
5959
&& github.repository_owner == 'ggerganov'
6060
)
61-
|| github.event.pull_request
61+
|| github.event_name == 'pull_request'
6262
|| github.head_ref == 'master'
6363
|| (
64-
github.event.push
65-
&& github.event.push.ref == 'refs/heads/master'
64+
github.event_name == 'push'
65+
&& github.event.ref == 'refs/heads/master'
6666
&& github.repository_owner == 'ggerganov'
6767
)
6868
|| (
69-
!github.event.push
69+
github.event_name != 'push'
7070
&& github.ref_name == 'master'
7171
)
7272
steps:

0 commit comments

Comments
 (0)