Skip to content

Commit 93878b7

Browse files
committed
chore: Adjust github build
1 parent 47ded86 commit 93878b7

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,19 @@ jobs:
2626
uses: coverallsapp/github-action@master
2727
with:
2828
github-token: ${{ secrets.GITHUB_TOKEN }}
29+
30+
build-results:
31+
name: Build results
32+
if: ${{ always() }}
33+
runs-on: ubuntu-latest
34+
needs:
35+
- build
36+
steps:
37+
- run: exit 1
38+
# see https://stackoverflow.com/a/67532120/4907315
39+
if: >-
40+
${{
41+
contains(needs.*.result, 'failure')
42+
|| contains(needs.*.result, 'cancelled')
43+
|| contains(needs.*.result, 'skipped')
44+
}}

0 commit comments

Comments
 (0)