Skip to content

Commit d8a4bac

Browse files
committed
ci: only report build status to monitoring on stable branch
Feature/version branches (e.g. the Fedora 44 bump) send the healthchecks "start" ping but never the success ping when their build fails, which makes monitoring.lablans.net raise false alarms. Gate both monitoring pings on github.ref_name == 'stable' so only stable-branch builds report.
1 parent 1832f1c commit d8a4bac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
UPSTREAM_IMAGE: ${{ needs.wait-for-new-upstream-image.outputs.upstream_image }}
8787
steps:
8888
- name: Report to monitoring (start)
89+
if: github.ref_name == 'stable'
8990
shell: bash
9091
env:
9192
URL: ${{ secrets.MONITORING_PUSH_URL }}
@@ -162,6 +163,7 @@ jobs:
162163
key: upstream-digest-${{ needs.wait-for-new-upstream-image.outputs.upstream_digest }}
163164

164165
- name: Report to monitoring (success)
166+
if: github.ref_name == 'stable'
165167
shell: bash
166168
env:
167169
URL: ${{ secrets.MONITORING_PUSH_URL }}

0 commit comments

Comments
 (0)