2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Hardcoded success criteria for running canary job

refs https://github.com/TryGhost/DevOps/issues/57

- I'm not sure why but I think the `contains` are doing funky things
  and not allowing the build to run when we expect it to
- switching to a slightly different if-statement should help with that
This commit is contained in:
Daniel Lockyer 2023-08-11 12:22:01 +02:00 committed by Daniel Lockyer
parent f26158b26b
commit fd95eac710

View file

@ -780,7 +780,7 @@ jobs:
]
name: Canary
runs-on: ubuntu-latest
if: ${{ always() && needs.job_get_metadata.outputs.is_canary_branch == 'true' && !(contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped')) }}
if: always() && needs.job_get_metadata.outputs.is_canary_branch == 'true' && needs.job_required_tests.result == 'success' && needs.job_get_metadata.result == 'success'
steps:
- name: Output needs (for debugging)
run: echo "${{ toJson(needs) }}"