We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d1952 commit 5ab658bCopy full SHA for 5ab658b
1 file changed
.github/workflows/release-assets.yml
@@ -5,6 +5,11 @@ on:
5
types:
6
- published
7
- edited
8
+ workflow_dispatch:
9
+ inputs:
10
+ tag:
11
+ description: Release tag to build and upload (example: v2.0)
12
+ required: true
13
14
permissions:
15
contents: write
@@ -18,7 +23,11 @@ jobs:
18
23
id: target
19
24
shell: pwsh
20
25
run: |
21
- $tag = "${{ github.event.release.tag_name }}"
26
+ if ("${{ github.event_name }}" -eq "workflow_dispatch") {
27
+ $tag = "${{ github.event.inputs.tag }}"
28
+ } else {
29
+ $tag = "${{ github.event.release.tag_name }}"
30
+ }
22
31
32
if ([string]::IsNullOrWhiteSpace($tag)) {
33
throw "No release tag was provided."
0 commit comments