Skip to content

Commit 8a70b06

Browse files
committed
Add tooling to deploy manually even if tests fail
1 parent 97f0c37 commit 8a70b06

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/cicd.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
description: "Environment to run deploy"
1212
type: environment
1313
required: true
14+
force:
15+
description: "Deploy even if tests fail"
16+
type: boolean
17+
required: false
18+
default: false
1419

1520
jobs:
1621
test:
@@ -42,8 +47,8 @@ jobs:
4247
secrets: inherit
4348

4449
manual-deployment:
45-
# needs: test # NOTE: We elect to skip tests on manual deployments
46-
if: github.event_name == 'workflow_dispatch'
50+
needs: test
51+
if: success() || inputs.force
4752
concurrency: ${{ inputs.environment }}
4853
uses: "./.github/workflows/deploy.yml"
4954
with:

0 commit comments

Comments
 (0)