Skip to content

Commit 5b44cef

Browse files
committed
update condition
1 parent 06ec688 commit 5b44cef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/playwright.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
STACKABLE_SLUG: Stackable/plugin
8282
run: npm run test
8383
- uses: actions/upload-artifact@v4
84-
if: ${{ steps.run-playwright-tests.outcome == 'failure' }}
84+
if: ${{ !cancelled() && steps.run-playwright-tests.outcome == 'failure' }}
8585
id: artifact-upload-step
8686
with:
8787
name: playwright-report-php_${{ matrix.php_version }}-wp_${{ env.WP_VERSION }}-${{ env.VERSION_SUFFIX }}
@@ -90,11 +90,11 @@ jobs:
9090
retention-days: 30
9191
- uses: markpatterson27/markdown-to-output@v1
9292
id: mto
93-
if: ${{ steps.run-playwright-tests.outcome == 'failure' }}
93+
if: ${{ !cancelled() && steps.run-playwright-tests.outcome == 'failure' }}
9494
with:
9595
filepath: ./playwright-stk/errors.md
9696
- name: Add test results to summary
97-
if: ${{ steps.run-playwright-tests.outcome == 'failure' }}
97+
if: ${{ !cancelled() && steps.run-playwright-tests.outcome == 'failure' }}
9898
run: |
9999
echo "### Results for PHP ${{ matrix.php_version }} and WP ${{ matrix.wp_version || 'latest' }}" >> $GITHUB_STEP_SUMMARY
100100
echo "${{ steps.mto.outputs.body }}" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)