From eda762d067835de9b7d7452781fd23fff30e20d0 Mon Sep 17 00:00:00 2001 From: Michel de Graaf Date: Sun, 26 Jul 2026 13:17:49 +0200 Subject: [PATCH] fix(ci): don't publish a release on a run that rebuilds an older tag --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1648d38..2826d61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -104,8 +104,15 @@ jobs: - uses: dtolnay/rust-toolchain@stable + # Skipped when a tag was dispatched by hand: that run exists to rebuild + # binaries for a tag that already shipped. Letting release-plz also + # publish here produced exactly one bad outcome in practice - it cut + # v9.1.0 while `Resolve tag` went on to honour the dispatched v9.0.0, so + # the new release got no binaries at all and the tap, which tracks the + # latest release, had nothing to generate a formula from. - uses: release-plz/action@v0.5 id: release-plz + if: inputs.tag == '' with: command: release env: