Skip to content

Commit

Permalink
Tune CI template for uploading artifact (#50533)
Browse files Browse the repository at this point in the history
* Use latest version https://github.com/actions/upload-artifact#v4---whats-new
* Use only on failed test run
* When no files found, do not warn https://github.com/actions/upload-artifact#inputs
  • Loading branch information
morgoth committed Jan 2, 2024
1 parent c57b2cd commit 0bf314c
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -105,8 +105,9 @@ jobs:
run: bin/rails db:setup test test:system

- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v3
if: always()
uses: actions/upload-artifact@v4
if: failure()
with:
name: screenshots
path: ${{ github.workspace }}/tmp/screenshots
if-no-files-found: ignore

0 comments on commit 0bf314c

Please sign in to comment.