mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
ci: Add job to report build_all status
This should enable proper status reporting of matrix jobs for release branches. See also https://github.com/orgs/community/discussions/4324. The new job will succeed if all build_all jobs succeeded and fail if there is a single failed or cancelled build job. This only runs for PRs, not for release tags or the main branch, unlike the build_all step. Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
This commit is contained in:
parent
b6aba4ff14
commit
d8a9d69f81
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue