forked from alphagov/whitehall
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.06 KB
/
set-automatic-deploys.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 }}