From b60d5bbe06c5f5667c00de480b6a7d111c7fc45b Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 11 Aug 2023 10:12:21 +0200 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ee476dce2..5475730ecd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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