From 766eb973db9f7d08497aa2edfa41b43cc13f43d8 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Thu, 22 Aug 2024 23:31:12 +0200 Subject: [PATCH] build.yml: Fix condition to check for PR event --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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