Skip to content

Commit 8c06b06

Browse files
committed
(maint) keep test env
1 parent a94f2fe commit 8c06b06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/module_acceptance.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ on:
2626
description: "Disable and stop apparmor"
2727
default: false
2828
type: boolean
29+
keep_test_env:
30+
description: "Skip removing the test environment if true"
31+
default: false
32+
type: boolean
2933

3034

3135
# ENABLE PUPPETCORE. The calling workflow must:
@@ -162,7 +166,7 @@ jobs:
162166
bundle exec rake 'litmus:acceptance:parallel'
163167
164168
- name: "Remove test environment"
165-
if: ${{ always() }}
169+
if: ${{ always() && (inputs.keep_test_env != 'true') }}
166170
continue-on-error: true
167171
run: |
168172
if [[ -f spec/fixtures/litmus_inventory.yaml ]]; then

0 commit comments

Comments
 (0)