From: Soeren Apel Date: Thu, 22 Aug 2024 21:31:12 +0000 (+0200) Subject: build.yml: Fix condition to check for PR event X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=766eb973db9f7d08497aa2edfa41b43cc13f43d8;p=sigrok-cli.git build.yml: Fix condition to check for PR event --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3344d75..d8d7733 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: create-pending-status: name: Create pending status # Run this only for pull requests - if: (github.event == pull_request) + if: (github.event_name == 'pull_request') runs-on: ubuntu-latest steps: @@ -52,7 +52,7 @@ jobs: needs: call-build-workflow if: | always() && # Workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422 - (github.event == pull_request) && + (github.event_name == 'pull_request') && (!contains(needs.*.result, 'cancelled')) && (!contains(needs.*.result, 'failure')) runs-on: ubuntu-latest @@ -91,7 +91,7 @@ jobs: needs: call-build-workflow if: | always() && # Workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422 - (github.event == pull_request) && + (github.event_name == 'pull_request') && (contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure')) runs-on: ubuntu-latest