Skip to content

Commit 1dcb4aa

Browse files
committed
ci(release): add workflow_dispatch with tag input
Lets maintainers manually (re)build release artifacts for a given tag when the release: published run failed to upload assets. The checkout ref falls back to the dispatch input when no release event is present.
1 parent c63e2f3 commit 1dcb4aa

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ name: Release Artifacts
66
on:
77
release:
88
types: [published]
9+
workflow_dispatch:
10+
inputs:
11+
tag:
12+
description: "Release tag to (re)build artifacts for (e.g. v2.6.0)"
13+
required: true
14+
type: string
915

1016
concurrency:
1117
group: release-artifacts
@@ -32,7 +38,7 @@ jobs:
3238

3339
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3440
with:
35-
ref: ${{ github.event.release.tag_name }}
41+
ref: ${{ github.event.release.tag_name || inputs.tag }}
3642
fetch-depth: 0
3743
persist-credentials: false
3844

0 commit comments

Comments
 (0)