Skip to content

Commit

Permalink
fix(CI): use ! negation
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <[email protected]>
  • Loading branch information
cameronraysmith committed Dec 3, 2023
1 parent d707a64 commit ae92358
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
test:
runs-on: ubuntu-latest
needs: [set-variables]
if: ${{ needs.set-variables.outputs.skip_ci != 'true' && needs.set-variables.outputs.skip_tests != 'true'}}
if: ${{ !needs.set-variables.outputs.skip_ci && !needs.set-variables.outputs.skip_tests }}
strategy:
matrix:
python_version: ['3.10']
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:

build-images:
needs: [test, set-variables]
if: ${{ needs.set-variables.outputs.skip_ci != 'true' && (contains(github.event.pull_request.labels.*.name, 'build-images') || contains(github.event.pull_request.labels.*.name, 'execute-workflow') || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_build_images)) }}
if: ${{ !needs.set-variables.outputs.skip_ci && (contains(github.event.pull_request.labels.*.name, 'build-images') || contains(github.event.pull_request.labels.*.name, 'execute-workflow') || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_build_images)) }}
uses: ./.github/workflows/build-images.yaml
secrets:
GCP_ARTIFACT_REGISTRY_PATH: ${{ secrets.GCP_ARTIFACT_REGISTRY_PATH }}
Expand All @@ -147,7 +147,7 @@ jobs:

config-workflows:
needs: [test, set-variables]
if: ${{ needs.set-variables.outputs.skip_ci != 'true' && (contains(github.event.pull_request.labels.*.name, 'execute-workflow') || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_execute_workflow)) }}
if: ${{ !needs.set-variables.outputs.skip_ci && (contains(github.event.pull_request.labels.*.name, 'execute-workflow') || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_execute_workflow)) }}
runs-on: ubuntu-latest
outputs:
config-path: ${{ steps.config-output.outputs.path }}
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:

execute-workflow:
needs: [config-workflows, build-images, set-variables]
if: ${{ needs.set-variables.outputs.skip_ci != 'true' && (contains(github.event.pull_request.labels.*.name, 'execute-workflow') || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_execute_workflow)) }}
if: ${{ !needs.set-variables.outputs.skip_ci && (contains(github.event.pull_request.labels.*.name, 'execute-workflow') || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_execute_workflow)) }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit ae92358

Please sign in to comment.