ci: allow skipped CI workflow to mean success (#1134)

This commit is contained in:
Clement Tsang 2023-05-06 13:59:43 -04:00 committed by GitHub
parent b60a62d5f0
commit bb94355cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,16 +257,16 @@ jobs:
completion:
name: "CI Pass Check"
needs: [supported, other-check]
if: ${{ always() }}
if: ${{ success() || failure() }}
runs-on: "ubuntu-latest"
steps:
- name: CI Passed
if: ${{ needs.supported.result == 'success' && needs.other-check.result == 'success' }}
if: ${{ (needs.supported.result == 'success' && needs.other-check.result == 'success') || (needs.supported.result == 'skipped' && needs.other-check.result == 'skipped') }}
run: |
echo "CI workflow completed successfully.";
- name: CI Failed
if: ${{ needs.supported.result != 'success' || needs.other-check.result != 'success' }}
if: ${{ needs.supported.result == 'failure' && needs.other-check.result == 'failure' }}
run: |
echo "CI workflow failed at some point.";
exit 1;