ci: output a failure in the completion step if a previous step failed (#1128)
* ci: output a failure in the completion step if a previous step failed * test * okay now if I add failure * yoink * always * use needs syntax
This commit is contained in:
parent
5548db6472
commit
f237babb58
|
@ -141,7 +141,6 @@ jobs:
|
||||||
needs: pre-job
|
needs: pre-job
|
||||||
runs-on: ${{ matrix.info.os }}
|
runs-on: ${{ matrix.info.os }}
|
||||||
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
||||||
continue-on-error: true
|
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -258,8 +257,16 @@ jobs:
|
||||||
completion:
|
completion:
|
||||||
name: "CI Pass Check"
|
name: "CI Pass Check"
|
||||||
needs: [supported, other-check]
|
needs: [supported, other-check]
|
||||||
|
if: ${{ always() }}
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
- name: CI Passed
|
- name: CI Passed
|
||||||
|
if: ${{ needs.supported.result == 'success' && needs.other-check.result == 'success' }}
|
||||||
run: |
|
run: |
|
||||||
echo "CI workflow completed."
|
echo "CI workflow completed successfully.";
|
||||||
|
|
||||||
|
- name: CI Failed
|
||||||
|
if: ${{ needs.supported.result != 'success' || needs.other-check.result != 'success' }}
|
||||||
|
run: |
|
||||||
|
echo "CI workflow failed at some point.";
|
||||||
|
exit 1;
|
||||||
|
|
Loading…
Reference in New Issue