Skip to content

Commit

Permalink
[workflow] only run "Upload artifacts of failed tests" step if files …
Browse files Browse the repository at this point in the history
…available
  • Loading branch information
derTobsch committed Nov 21, 2024
1 parent 86b57c6 commit adf2b9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:

- name: Upload artifacts of failed tests
uses: actions/upload-artifact@v4
if: always()
if: ${{ hashFiles('target/ui-test/**/FAILED-*') != '' }}
with:
name: failed-ui-tests
path: target/ui-test/**/FAILED-*
2 changes: 1 addition & 1 deletion .github/workflows/release-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:

- name: Upload artifacts of failed tests
uses: actions/upload-artifact@v4
if: always()
if: ${{ hashFiles('target/ui-test/**/FAILED-*') != '' }}
with:
name: failed-ui-tests
path: target/ui-test/**/FAILED-*
Expand Down

0 comments on commit adf2b9d

Please sign in to comment.