diff --git a/.github/workflows/version-bump-gate-caller.yml b/.github/workflows/version-bump-gate-caller.yml new file mode 100644 index 0000000..ae91e73 --- /dev/null +++ b/.github/workflows/version-bump-gate-caller.yml @@ -0,0 +1,23 @@ +name: Version bump gate + +# Caller for tracebloc/.github version-bump-gate.yml. Fails a develop PR that +# touches this repo's published files while the version those files would ship +# under is ALREADY released -- caught on the author's diff, not days later at the +# prod hop (backend#1563; the cli + py-package surprise on 2026-08-10). +# Override a false positive with the 'skip-version-gate' label (visible in audit). +on: + pull_request: + branches: [develop] + # labeled/unlabeled so the skip-version-gate override actually re-runs the gate (Bugbot) + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] + +permissions: + contents: read + +jobs: + version-bump-gate: + uses: tracebloc/.github/.github/workflows/version-bump-gate.yml@main + with: + version-file: "VERSION" + publish-paths: "cmd/* internal/* go.mod go.sum VERSION" + soft-fail: false