Skip to content

Commit

Permalink
build.yml: Fix condition to check for PR event
Browse files Browse the repository at this point in the history
  • Loading branch information
abraxa committed Aug 22, 2024
1 parent 9b950ab commit 766eb97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 766eb97

Please sign in to comment.