Skip to content

Set automatic deploys to enabled in production #1

Set automatic deploys to enabled in production

Set automatic deploys to enabled in production #1

name: Set automatic deploys
run-name: Set automatic deploys to ${{ inputs.setAutomaticDeploys }} in ${{ inputs.environment }}
on:
workflow_dispatch:
inputs:
setAutomaticDeploys:
description: 'Set automatic deploys'
required: false
type: choice
options:
- enabled
- disabled
default: 'enabled'
environment:
description: 'Environment'
required: true
type: choice
options:
- integration
- staging
- production
default: 'integration'
jobs:
set-automatic-deploys:
name: Set automatic deploys
uses: alphagov/govuk-infrastructure/.github/workflows/set-automatic-deploys.yml@main
with:
automaticDeploysEnabled: ${{ github.event.inputs.setAutomaticDeploys == 'enabled' }}
environment: ${{ github.event.inputs.environment }}
secrets:
WEBHOOK_TOKEN: ${{ secrets.GOVUK_ARGO_EVENTS_WEBHOOK_TOKEN }}
WEBHOOK_URL: ${{ secrets.GOVUK_ARGO_EVENTS_WEBHOOK_URL }}
GH_TOKEN: ${{ secrets.GOVUK_CI_GITHUB_API_TOKEN }}