Skip to content

fix(release): add workflow_dispatch to retrigger for existing tags#167

Merged
zeitlinger merged 3 commits intomainfrom
fix/release-workflow-dispatch
Apr 13, 2026
Merged

fix(release): add workflow_dispatch to retrigger for existing tags#167
zeitlinger merged 3 commits intomainfrom
fix/release-workflow-dispatch

Conversation

@zeitlinger
Copy link
Copy Markdown
Member

Summary

  • Adds workflow_dispatch trigger with a tag input to the release workflow
  • Passes the tag as ref to both actions/checkout and upload-rust-binary-action (via GITHUB_REF override)
  • No change to the normal push-triggered flow

Why

The v0.20.0 release workflow failed because the tag was flint-v0.20.0 (release-please bug, fixed in #166) and the release had to be created manually. Due to tag protection rules and the immutable-releases policy, there was no way to retrigger the workflow. This adds an escape hatch for that situation.

Allows manually triggering the release workflow for a specific tag,
useful when the automatic push trigger fails. Passes the tag as ref
to both checkout and upload-rust-binary-action via GITHUB_REF override.
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
GITHUB_REF cannot be overridden via env: — the runner sets it before
steps execute. The action's ref input is the correct way to pass an
arbitrary tag ref for workflow_dispatch triggers.
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger marked this pull request as ready for review April 13, 2026 15:50
@zeitlinger zeitlinger requested a review from a team as a code owner April 13, 2026 15:50
Copilot AI review requested due to automatic review settings April 13, 2026 15:50
@zeitlinger zeitlinger enabled auto-merge (squash) April 13, 2026 15:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a manual “escape hatch” to the release workflow so maintainers can re-run releases for an existing tag when the normal tag-push trigger can’t be used (e.g., due to tag protection / immutable release policies).

Changes:

  • Add workflow_dispatch trigger with a required tag input.
  • Use the provided tag to select the ref for actions/checkout and for the Rust binary upload step (via the action’s ref override).
  • Preserve the existing push-on-tag (v*) trigger path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml
- Use github.event_name guard instead of inputs.tag truthiness check —
  safer on push events where inputs context is unavailable
- Clarify tag input description to prevent refs/tags/ prefix
  (which would double-prefix the constructed ref)
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger merged commit 0ffb495 into main Apr 13, 2026
13 checks passed
@zeitlinger zeitlinger deleted the fix/release-workflow-dispatch branch April 13, 2026 16:01
This was referenced Apr 13, 2026
zeitlinger added a commit that referenced this pull request Apr 16, 2026
### Added

- *(release)* migrate from release-please to release-plz
([#171](#171))

### Fixed

- *(release)* use correct template variable in pr_body
([#178](#178))
- *(release)* suppress component prefix in release-please tags
([#166](#166))
- *(release)* add workflow_dispatch to retrigger for existing tags
([#167](#167))

### Other

- move icon to assets/ to fix release-plz
([#177](#177))
- *(deps)* update dependency npm:renovate to v43.102.11 [security]
([#174](#174))
- *(deps)* update rust crate similar to v3.1.0
([#173](#173))
- *(deps)* update dependency github:mvdan/sh to v3.13.1
([#163](#163))

> [!IMPORTANT]
> Close and reopen this PR to trigger CI checks.

---------

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
This was referenced Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants