From dfb33e8f7ac75f93c6210cb0ce4d62b6f9c0e7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigbj=C3=B8rn=20Skj=C3=A6ret?= Date: Sat, 4 May 2024 23:30:47 +0200 Subject: [PATCH] correct github.event usage --- .github/workflows/python-lint.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml index 49a5385df3255..0bf1ea63edd4d 100644 --- a/.github/workflows/python-lint.yml +++ b/.github/workflows/python-lint.yml @@ -20,20 +20,20 @@ jobs: - name: flake8 Lint uses: py-actions/flake8@v2 if: | - github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3' + inputs.gpu-series == 'Standard_NC4as_T4_v3' || ( - github.event.schedule + github.event_name == 'schedule' && github.repository_owner == 'ggerganov' ) - || github.event.pull_request + || github.event_name == 'pull_request' || github.head_ref == 'master' || ( - github.event.push - && github.event.push.ref == 'refs/heads/master' + github.event_name == 'push' + && github.event.ref == 'refs/heads/master' && github.repository_owner == 'ggerganov' ) || ( - !github.event.push + github.event_name != 'push' && github.ref_name == 'master' ) with: