We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daa5c8a commit e24b7bbCopy full SHA for e24b7bb
1 file changed
.github/workflows/release.yml
@@ -3,6 +3,12 @@ name: Release
3
on:
4
release:
5
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
12
13
# Remove default permissions of GITHUB_TOKEN for security
14
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
@@ -26,7 +32,11 @@ jobs:
26
32
- name: Extract version from tag
27
33
id: version
28
34
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
30
40
echo "version=$VERSION" >> $GITHUB_OUTPUT
31
41
echo "Publishing version: $VERSION"
42
0 commit comments