summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-10-07 23:52:03 +0800
committercyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-10-07 23:52:03 +0800
commit47158ac3c777c27eab7d38406554b8ccfa09e587 (patch)
tree6b7a07ce9ae4d6c6e6c6b6421315e4ca2637a35c /.github
parent53f6feae17c2cf1e950af114b18ea984475d38ca (diff)
CI: override default run condition for failed test snapshots upload step
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 9f64ab2..0d30b64 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -87,7 +87,7 @@ jobs:
run: cargo test --verbose
- name: Upload snapshots of failed tests
- if: ${{ steps.run_tests.outcome == 'failure' }}
+ if: ${{ failure() && steps.run_tests.outcome == 'failure' }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.rust }}-failed_snapshots