docs: change if: always() to if: !cancelled()

This commit is contained in:
Max Schmitt 2024-03-25 19:06:26 +01:00
parent 1539cde034
commit 5782515e7d
2 changed files with 4 additions and 4 deletions

View file

@ -65,7 +65,7 @@ jobs:
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
@ -103,7 +103,7 @@ jobs:
- name: Run your tests
run: pytest --tracing=retain-on-failure
- uses: actions/upload-artifact@v4
if: always()
if: ${{ !cancelled() }}
with:
name: playwright-traces
path: test-results/

View file

@ -89,7 +89,7 @@ jobs:
run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- name: Upload blob report to GitHub Actions Artifacts
if: always()
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: blob-report-${{ matrix.shardIndex }}
@ -104,7 +104,7 @@ jobs:
...
merge-reports:
# Merge reports after playwright-tests, even if some shards have failed
if: always()
if: ${{ !cancelled() }}
needs: [playwright-tests]
runs-on: ubuntu-latest