From 60462d66a2ebdf2f1630f8021c7a31e8fbc3dd42 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Tue, 9 Jun 2026 09:07:49 +0300 Subject: [PATCH] ci(action-smoke): gate on pull_request to avoid false fail on main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On push-to-main the merge tip IS a `feat/`/`bugfix/` source, so branch-prefix returns `created` and `bump=patch|minor` — the tightened no-bump assertions then fail by design. Coverage of that path lives in the dogfood workflow (`.github/workflows/semvertag.yml`), which runs the same `uses: ./` end-to-end on every push to main. Gating action-smoke on `pull_request` keeps the assertion's intent (catch PR- time regressions in action.yml's normalization) without colliding with main's expected created-tag path. --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6a1e2f..2e00939 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,12 @@ jobs: - run: just test --cov-report xml action-smoke: + # PR-only: on push-to-main the latest commit IS a `feat/`/`bugfix/` merge, + # so branch-prefix returns `created`/`patch`/`minor` — the no-bump + # assertions would fail. End-to-end coverage on main is provided by the + # dogfood workflow (`.github/workflows/semvertag.yml`), which runs the + # same `uses: ./` and pushes a real tag. + if: github.event_name == 'pull_request' runs-on: ubuntu-latest permissions: contents: write