ci: skip workspace semver on release pushes (#8390)

`github.event.pull_request.base.ref` is empty for push events, so the workspace semver check runs on `tokio-1.*.x` branches. Also check `github.ref_name` to preserve the intended release-branch exclusion while leaving pull request behavior unchanged.

Fixes: #8389
This commit is contained in:
fly1d
2026-08-27 11:14:39 +02:00
committed by GitHub
parent 11bfc1345b
commit 9c880b082b
+1 -1
View File
@@ -515,7 +515,7 @@ jobs:
package: tokio
release-type: minor
- name: Check semver for rest of the workspace
if: ${{ !startsWith(github.event.pull_request.base.ref, 'tokio-1.') }}
if: ${{ !startsWith(github.event.pull_request.base.ref, 'tokio-1.') && !startsWith(github.ref_name, 'tokio-1.') }}
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-toolchain: ${{ env.rust_stable }}