Skip to content

Commit

Permalink
Fix image build trigger
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed Nov 21, 2023
1 parent 2a78de2 commit ed91861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ on:

jobs:
build-image:
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
# We trigger builds on MERGED pull requests or on non-closed PRs that are not created against a fork.
if: (github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true) || (github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit ed91861

Please sign in to comment.