From e354e6f2ac0de05fb3c3542b34e77ed961e73653 Mon Sep 17 00:00:00 2001 From: Chris Banks Date: Tue, 15 Nov 2022 14:42:05 +0000 Subject: [PATCH] Fix wrong variable name in set-automatic-deploys GitHub workflow. This fixes a bug where the `Set automatic deploys` workflow would always disable automatic deploys even with the input `setAutomaticDeploys=enable`. Tested: ran from branch, observed that the webhook is now called with `AUTOMATIC_DEPLOYS_ENABLED: true` when `setAutomaticDeploys=enable` (https://github.com/alphagov/collections/actions/runs/3471035053/jobs/5799996274) --- .github/workflows/set-automatic-deploys.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/set-automatic-deploys.yaml b/.github/workflows/set-automatic-deploys.yaml index 59883d6a9..0c3212a0a 100644 --- a/.github/workflows/set-automatic-deploys.yaml +++ b/.github/workflows/set-automatic-deploys.yaml @@ -28,7 +28,7 @@ jobs: name: Set automatic deploys uses: alphagov/govuk-infrastructure/.github/workflows/set-automatic-deploys.yaml@main with: - automaticDeploysEnabled: ${{ github.event.inputs.automaticDeploys == 'enabled' }} + automaticDeploysEnabled: ${{ github.event.inputs.setAutomaticDeploys == 'enabled' }} environment: ${{ github.event.inputs.environment }} secrets: WEBHOOK_TOKEN: ${{ secrets.GOVUK_ARGO_EVENTS_WEBHOOK_TOKEN }}