File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- releases/[0-9]+.[0-9]+.[0-9]+
7
+ workflow_dispatch :
8
+ inputs :
9
+ tag :
10
+ description : ' Tag to deploy'
11
+ required : true
7
12
8
13
jobs :
9
14
build :
10
15
11
16
runs-on : windows-latest
12
17
13
18
steps :
14
- - uses : actions/checkout@v2
19
+ - uses : actions/checkout@v4
20
+ with :
21
+ ref : ${{ inputs.tag != '' && inputs.tag || github.ref }}
22
+
15
23
- name : Get the version
16
24
id : get_version
17
25
uses :
mavrosxristoforos/[email protected]
24
32
$version = "${{ steps.get_version.outputs.info }}".Substring(0, "${{ steps.get_version.outputs.info }}".LastIndexOf("."))
25
33
Write-Host "::set-output name=shortversion::$version"
26
34
shell : pwsh
27
- - uses : actions/checkout@v2
28
35
- name : Restore dependencies
29
36
run : dotnet restore
30
37
- name : Build
You can’t perform that action at this time.
0 commit comments