0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added debugging to diagnose cause of skipped canary builds

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

- this should help us find out why canary builds are skipped in some
  circumstances
This commit is contained in:
Daniel Lockyer 2023-08-11 10:12:21 +02:00 committed by Daniel Lockyer
parent 3fa3a34187
commit b60d5bbe06

View file

@ -780,8 +780,11 @@ 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' && !(contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped')) }}
steps:
- name: Output needs (for debugging)
run: echo "${{ toJson(needs) }}"
- name: Set env variables
run: |
echo "CANARY_BUILD_INPUTS={\"version\":\"canary\",\"environment\":\"staging\"}" >> $GITHUB_ENV