Skip to content

Commit e24b7bb

Browse files
committed
Manual trigger of release workflow
1 parent daa5c8a commit e24b7bb

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Release
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: 'Version to publish (e.g., 1.2.3)'
10+
required: false
11+
type: string
612

713
# Remove default permissions of GITHUB_TOKEN for security
814
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
@@ -26,7 +32,11 @@ jobs:
2632
- name: Extract version from tag
2733
id: version
2834
run: |
29-
VERSION=${GITHUB_REF#refs/tags/v}
35+
if [ -n "${{ inputs.version }}" ]; then
36+
VERSION="${{ inputs.version }}"
37+
else
38+
VERSION=${GITHUB_REF#refs/tags/v}
39+
fi
3040
echo "version=$VERSION" >> $GITHUB_OUTPUT
3141
echo "Publishing version: $VERSION"
3242

0 commit comments

Comments
 (0)