Skip to content

Commit c3cf98d

Browse files
Allow workflow dispatch on release build so we can re-trigger
1 parent ba35257 commit c3cf98d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,22 @@ on:
44
push:
55
tags:
66
- releases/[0-9]+.[0-9]+.[0-9]+
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'Tag to deploy'
11+
required: true
712

813
jobs:
914
build:
1015

1116
runs-on: windows-latest
1217

1318
steps:
14-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: ${{ inputs.tag != '' && inputs.tag || github.ref }}
22+
1523
- name: Get the version
1624
id: get_version
1725
uses: mavrosxristoforos/[email protected]
@@ -24,7 +32,6 @@ jobs:
2432
$version = "${{ steps.get_version.outputs.info }}".Substring(0, "${{ steps.get_version.outputs.info }}".LastIndexOf("."))
2533
Write-Host "::set-output name=shortversion::$version"
2634
shell: pwsh
27-
- uses: actions/checkout@v2
2835
- name: Restore dependencies
2936
run: dotnet restore
3037
- name: Build

0 commit comments

Comments
 (0)