Skip to content

Commit 6c14c89

Browse files
Merge pull request #37 from devopsabcs-engineering/feature/fix-teardown-optional-scan
fix(workflows): make scan demo teardown optional
2 parents a4bef9d + acee9f3 commit 6c14c89

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/deploy-all.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ name: Deploy All Demo Apps
66

77
on:
88
workflow_dispatch:
9+
inputs:
10+
teardown_scan_demo:
11+
description: 'Also tear down the scan demo app (rg-a11y-scan-demo)'
12+
required: false
13+
type: boolean
14+
default: false
915

1016
env:
1117
LOCATION: canadacentral
@@ -210,6 +216,7 @@ jobs:
210216
fi
211217
212218
- name: Delete rg-a11y-scan-demo
219+
if: ${{ inputs.teardown_scan_demo }}
213220
run: |
214221
if az group exists --name rg-a11y-scan-demo | grep -q true; then
215222
echo "Deleting resource group: rg-a11y-scan-demo"

0 commit comments

Comments
 (0)