From f461a659ba0cdfabe5f51e209c68928c895f071d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Krajcsovits?= Date: Tue, 20 Oct 2026 16:43:24 +0200 Subject: [PATCH] ci: only require OpenMetrics spec version bump on PRs against main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PRs targeting a feature branch such as om2-rc1 collect several spec changes that are released under a single version. Requiring a version bump on each of them is noise, so restrict the check to PRs against main, where the accumulated work gets its version. Signed-off-by: György Krajcsovits --- .github/workflows/openmetrics.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/openmetrics.yml b/.github/workflows/openmetrics.yml index 77f1f29e4..6a066b27b 100644 --- a/.github/workflows/openmetrics.yml +++ b/.github/workflows/openmetrics.yml @@ -25,6 +25,9 @@ jobs: run: | python3 openmetrics-spec-tests/check_openmetrics_spec.py docs/specs/om/open_metrics_spec_2_0.md - name: Check version bump for OpenMetrics 2.0 + # Feature branches collect multiple spec changes under a single version, + # the bump is only required once the work is merged into main. + if: github.event.pull_request.base.ref == 'main' env: BASE_REF: ${{ github.event.pull_request.base.ref }} HEAD_SHA: ${{ github.event.pull_request.head.sha }}