]> sigrok.org Git - sigrok-cli.git/commitdiff
build.yml: Fix condition to check for PR event
authorSoeren Apel <redacted>
Thu, 22 Aug 2024 21:31:12 +0000 (23:31 +0200)
committerSoeren Apel <redacted>
Thu, 22 Aug 2024 21:31:12 +0000 (23:31 +0200)
.github/workflows/build.yml

index 3344d75b6634f50b6c608443f0709aadabd1e4e1..d8d7733517439ff9a7c818b4d96946c85a41b21a 100644 (file)
@@ -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