Skip to content

Commit 7b7a819

Browse files
committed
Refine the new check-blocking job
- Show the job lists for better debugging. - Reword the `diff` step name to be clearer (albeit less precise).
1 parent 4e672ef commit 7b7a819

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,12 @@ jobs:
315315
with:
316316
sparse-checkout: ${{ env.WORKFLOW_PATH }}
317317
- name: Get all jobs
318-
run: yq '.jobs | keys.[]' -- "$WORKFLOW_PATH" | sort > all-jobs.txt
318+
run: yq '.jobs | keys.[]' -- "$WORKFLOW_PATH" | sort | tee all-jobs.txt
319319
- name: Get blocking jobs
320-
run: yq '.jobs.tests-pass.needs.[]' -- "$WORKFLOW_PATH" | sort > blocking-jobs.txt
320+
run: yq '.jobs.tests-pass.needs.[]' -- "$WORKFLOW_PATH" | sort | tee blocking-jobs.txt
321321
- name: Get jobs we intend do not block
322-
run: sort <<<"$EXPECTED_NONBLOCKING_JOBS" > expected-nonblocking-jobs.txt
323-
- name: Check that each job blocks PRs xor intentionally doesn't
322+
run: sort <<<"$EXPECTED_NONBLOCKING_JOBS" | tee expected-nonblocking-jobs.txt
323+
- name: Each job must block PRs or be declared not to
324324
run: |
325325
sort -m blocking-jobs.txt expected-nonblocking-jobs.txt |
326326
diff --color=always -U1000 -- - all-jobs.txt

0 commit comments

Comments
 (0)