Merge pull request #14343 from jan--f/build-status-step

ci: Add job to report build_all status
This commit is contained in:
Jan Fajerski 2024-07-22 09:09:38 +02:00 committed by GitHub
commit 398504e080
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,6 +143,18 @@ jobs:
with: with:
parallelism: 12 parallelism: 12
thread: ${{ matrix.thread }} thread: ${{ matrix.thread }}
build_all_status:
name: Report status of build Prometheus for all architectures
runs-on: ubuntu-latest
needs: [build_all]
if: github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-')
steps:
- name: Successful build
if: ${{ !(contains(needs.*.result, 'failure')) && !(contains(needs.*.result, 'cancelled')) }}
run: exit 0
- name: Failing or cancelled build
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1
check_generated_parser: check_generated_parser:
name: Check generated parser name: Check generated parser
runs-on: ubuntu-latest runs-on: ubuntu-latest