From a490026d4d84709485be1f0a9e3f073440ad344d Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Tue, 13 Aug 2024 23:48:40 -0700 Subject: [PATCH] better artifact upload code... --- .github/workflows/rspec.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index 3c663e1..71b7867 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -24,9 +24,11 @@ jobs: - name: summary if: always() run: ruby spec/support/spec_summary.rb - - name: 'Upload Test Screenshots' + - name: Keep screenshots from failed tests uses: actions/upload-artifact@v4 + if: failure() with: - name: my-artifact - path: tmp/capybara/* + name: screenshots + path: ${{ github.workspace }}/tmp/capybara + if-no-files-found: ignore retention-days: 7