Skip to content

Commit 37c4a52

Browse files
committed
ci: conditional required showcase matrix job
1 parent f30601a commit 37c4a52

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/showcase.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,15 @@ jobs:
216216
run: |
217217
mvn versions:set -B -ntp -DnewVersion=local
218218
mvn clirr:check -B -ntp -DcomparisonVersion=$SHOWCASE_CLIENT_VERSION
219+
220+
required:
221+
needs: [ showcase, showcase-java8 ]
222+
name: conditional-required-check
223+
if: ${{ always() }} # Always run even if any "needs" jobs fail
224+
runs-on: ubuntu-22.04
225+
steps:
226+
- name: Fail if any previous failure
227+
if: ${{ contains(needs.*.result, 'failure') }}
228+
run: exit 1
229+
- name: Success otherwise
230+
run: echo "Success!"

0 commit comments

Comments
 (0)