Skip to content

Commit dfb33e8

Browse files
authored
correct github.event usage
1 parent acd1d89 commit dfb33e8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/python-lint.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ jobs:
2020
- name: flake8 Lint
2121
uses: py-actions/flake8@v2
2222
if: |
23-
github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3'
23+
inputs.gpu-series == 'Standard_NC4as_T4_v3'
2424
|| (
25-
github.event.schedule
25+
github.event_name == 'schedule'
2626
&& github.repository_owner == 'ggerganov'
2727
)
28-
|| github.event.pull_request
28+
|| github.event_name == 'pull_request'
2929
|| github.head_ref == 'master'
3030
|| (
31-
github.event.push
32-
&& github.event.push.ref == 'refs/heads/master'
31+
github.event_name == 'push'
32+
&& github.event.ref == 'refs/heads/master'
3333
&& github.repository_owner == 'ggerganov'
3434
)
3535
|| (
36-
!github.event.push
36+
github.event_name != 'push'
3737
&& github.ref_name == 'master'
3838
)
3939
with:

0 commit comments

Comments
 (0)