From d3fbafbc8eff9cdaa780b4b02d548b9bf793bd59 Mon Sep 17 00:00:00 2001 From: Sean Rankine Date: Fri, 1 Sep 2023 14:52:43 +0100 Subject: [PATCH] Remove default gitRef for deploy workflow This removes the default value of 'main' as to encourage people to deploy a specific version tag, rather than assuming the intended release it still the HEAD of main. --- .github/workflows/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cc720084c..8cace408a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,7 +9,6 @@ on: description: 'Commit, tag or branch name to deploy' required: true type: string - default: 'main' environment: description: 'Environment to deploy to' required: true @@ -24,7 +23,7 @@ on: jobs: build-and-publish-image: - if: github.event_name == 'workflow_dispatch' || startsWith(github.ref_name, 'v') + if: github.event_name == 'workflow_dispatch' || startsWith(github.ref_name, 'v') name: Build and publish image uses: alphagov/govuk-infrastructure/.github/workflows/build-and-push-image.yml@main with: