Skip to content

Commit 842db9f

Browse files
Fix: use !cancelled() and check fork-status result before running tests
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
1 parent 415b4e8 commit 842db9f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/test-all-warehouses.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ jobs:
7676

7777
test:
7878
needs: [check-fork-status, approve-fork]
79-
# Run if: not skipped AND (not a fork OR fork approval succeeded)
79+
# Run if: not cancelled, fork check succeeded, not skipped, AND (not a fork OR fork approval succeeded)
8080
if: |
81-
always() &&
81+
! cancelled() &&
82+
needs.check-fork-status.result == 'success' &&
8283
needs.check-fork-status.outputs.should_skip != 'true' &&
8384
(needs.check-fork-status.outputs.is_fork != 'true' || needs.approve-fork.result == 'success')
8485
strategy:

0 commit comments

Comments
 (0)