Skip to content

Commit 85a1bfc

Browse files
committed
.github: add support for manually starting a release build
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 5ebd473 commit 85a1bfc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
tags:
66
- 'v[0-9]*.*'
7+
workflow_dispatch:
8+
inputs:
9+
version:
10+
required: false
11+
type: string
712

813
jobs:
914
build:
@@ -20,7 +25,11 @@ jobs:
2025
- name: Set Release Variables
2126
id: build
2227
run: |
23-
ver=${GITHUB_REF#refs/tags/v}
28+
if [ -n "${{ inputs.version }}" ]; then
29+
ver=${{ inputs.version }}
30+
else
31+
ver=${GITHUB_REF#refs/tags/v}
32+
fi
2433
echo "ver=${ver}" >> $GITHUB_OUTPUT
2534
if echo $ver | grep -qE '[0-9.]+(-alpha|-beta|-rc)[0-9]*'; then
2635
echo "pre=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)