Skip to content

Commit a6a32bb

Browse files
senamakelmedullabot
andcommitted
feat(ci): add optional existing_tag input for re-cutting module artifacts
Add a workflow_dispatch input that allows re-running the release workflow for an already existing tag, skipping the crate publish step. Also expose the tag and next_version outputs from the version step so that downstream jobs can consume them when the workflow is triggered manually. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
1 parent 9170857 commit a6a32bb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
- patch
1212
- minor
1313
- major
14+
existing_tag:
15+
description: >-
16+
Re-cut module artifacts for a tag that already exists, skipping the
17+
crate publish. Leave empty for a normal release.
18+
type: string
19+
required: false
20+
default: ""
1421

1522
concurrency:
1623
group: release-${{ github.ref_name }}
@@ -23,6 +30,12 @@ jobs:
2330
publish:
2431
name: Publish crate
2532
if: ${{ github.ref == 'refs/heads/main' }}
33+
# Consumed by `release-target`. The `version` step already writes both to
34+
# `$GITHUB_OUTPUT`; without this block they stop at the job boundary and the
35+
# module bundles resolve an empty tag.
36+
outputs:
37+
tag: ${{ steps.version.outputs.tag }}
38+
next_version: ${{ steps.version.outputs.next_version }}
2639
runs-on: ubuntu-latest
2740
environment: Production
2841
steps:

0 commit comments

Comments
 (0)