Skip to content

Commit a20b902

Browse files
committed
Fix VersionInfo in releases
1 parent 31ba1b7 commit a20b902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: nuget restore .\WorkflowTest\WorkflowTest.sln
2222

2323
- name: Set version
24-
run: powershell "((Get-Content -path .\WorkflowTest\WorkflowTestProgram\VersionInfo.cs -Raw) -replace 'DEVELOPMENT','${{ github.ref }}') | Set-Content -Path .\WorkflowTest\WorkflowTestProgram\VersionInfo.cs"
24+
run: powershell "((Get-Content -path .\WorkflowTest\WorkflowTestProgram\VersionInfo.cs -Raw) -replace 'DEVELOPMENT',('${{ github.ref }}' -replace '.*/')) | Set-Content -Path .\WorkflowTest\WorkflowTestProgram\VersionInfo.cs"
2525

2626
- name: Add msbuild to PATH
2727
uses: microsoft/[email protected]

0 commit comments

Comments
 (0)