Skip to content

Commit

Permalink
fix(ci): proper if condition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MSevey committed Mar 25, 2024
1 parent 9f445d6 commit dfe047e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/reusable_dockerfile_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,13 @@ jobs:
runs-on: "ubuntu-latest"
# wait until the jobs are finished.
needs: ["prepare-env", "logic-check", "docker-security"]
# Don't run if both logic flags are false. This is the case for push events
# on PR commits.
# We only want to run this step if one of the build flags is true. We don't
# run if both logic flags are false. This is the case for push events on PR
# commits. The logic-check job protects us from the case of both build flags
# being equal to true.
if: |
needs.prepare-env.outputs.build_for_pr == 'false'
&& needs.prepare-env.outputs.build_for_merge == 'false'
needs.prepare-env.outputs.build_for_pr == 'true'
|| needs.prepare-env.outputs.build_for_merge == 'true'
permissions:
contents: write
packages: write
Expand Down

0 comments on commit dfe047e

Please sign in to comment.