mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-22 20:23:12 +00:00
ci: allow skipped CI workflow to mean success (#1134)
This commit is contained in:
parent
b60a62d5f0
commit
bb94355cfc
1 changed files with 3 additions and 3 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue