Skip to content

Commit 7333584

Browse files
authored
Allow release pipeline to be run manually
1 parent d2a3dc8 commit 7333584

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ on:
44
push:
55
tags:
66
- '*'
7-
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'Existing release tag'
11+
required: true
12+
type: string
13+
814
permissions:
915
contents: write
1016

@@ -21,8 +27,11 @@ jobs:
2127
- name: Set version from tag
2228
id: set_version
2329
run: |
24-
VERSION=${GITHUB_REF#refs/tags/}
25-
echo "::set-output name=version::$VERSION"
30+
VERSION="${{ github.event.inputs.tag }}"
31+
if [ -z "$VERSION" ]; then
32+
VERSION="${GITHUB_REF#refs/tags/}"
33+
fi
34+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
2635
2736
- name: Install PowerShell
2837
run: |

0 commit comments

Comments
 (0)