ci: job naming improvements and success job for matrix (#12316)

Co-authored-by: bo0tzz <git@bo0tzz.me>
This commit is contained in:
Zack Pollard
2024-09-04 23:28:30 +01:00
committed by GitHub
parent 77e6a6d78b
commit 0d6bef2c05
6 changed files with 24 additions and 7 deletions

View File

@@ -234,3 +234,16 @@ jobs:
BUILD_IMAGE=${{ github.event_name == 'release' && github.ref_name || steps.metadata.outputs.tags }}
BUILD_SOURCE_REF=${{ github.ref_name }}
BUILD_SOURCE_COMMIT=${{ github.sha }}
success-check:
name: Docker Build & Push Success
needs: [build_and_push_ml, build_and_push_server]
runs-on: ubuntu-latest
if: always()
steps:
- name: Any jobs failed?
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
- name: All jobs passed or skipped
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: echo "All jobs passed or skipped" && echo "${{ toJSON(needs.*.result) }}"