Skip to content

Commit 8ee7131

Browse files
committed
Only upload log files if molecule tests failed
1 parent 9cfb5c5 commit 8ee7131

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ansible.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ jobs:
196196
MOLECULE_VAGRANT_BOX_URL: /tmp/vagrant.box
197197
MOLECULE_VAGRANT_BOX_VERSION: " " # version must not be set when using a local box
198198

199-
- name: Uploading log file
200-
if: success() || failure()
199+
- name: Uploading log files
200+
if: failure()
201201
uses: actions/upload-artifact@v4
202202
with:
203203
path: /tmp/log/

0 commit comments

Comments
 (0)