Skip to content

Commit 4c034ad

Browse files
committed
chore: Merge Build results
1 parent 5f2e740 commit 4c034ad

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,18 @@ jobs:
5252
- name: Run PMD checks
5353
run: ./mvnw pmd:check
5454

55-
deploy:
56-
needs: [build]
55+
build-results:
56+
name: Build results
57+
if: ${{ always() }}
5758
runs-on: ubuntu-latest
58-
59+
needs:
60+
- build
5961
steps:
60-
- name: Check out
61-
uses: actions/checkout@v3
62-
with:
63-
fetch-depth: 0
64-
- name: Set up JDK 11
65-
uses: actions/setup-java@v3
66-
with:
67-
distribution: "adopt"
68-
java-version: 11
62+
- run: exit 1
63+
# see https://stackoverflow.com/a/67532120/4907315
64+
if: >-
65+
${{
66+
contains(needs.*.result, 'failure')
67+
|| contains(needs.*.result, 'cancelled')
68+
|| contains(needs.*.result, 'skipped')
69+
}}

0 commit comments

Comments
 (0)