Skip to content

Commit

Permalink
ci: use a job to collect matrix results
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Sep 11, 2023
1 parent 10b0aa9 commit bcd9622
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,12 @@ jobs:
run: pnpm docs:build
env:
DOCS_BUNDLER: ${{ matrix.bundler }}

check-docs-result:
if: ${{ always() }}
name: Check docs result
runs-on: ubuntu-latest
needs: [check-docs]
steps:
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1
9 changes: 9 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,12 @@ jobs:

- name: Test
run: pnpm test

check-result:
if: ${{ always() }}
name: Check result
runs-on: ubuntu-latest
needs: [check]
steps:
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1

0 comments on commit bcd9622

Please sign in to comment.