Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Feb 5, 2024
1 parent 7229dcb commit ec6c871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:

- name: Set Version
run: |
(Get-Content "./AutoLinker.h" -Encoding UTF8) |
(Get-Content "./AutoLinker.h" -Encoding UTF8 -Raw) |
ForEach-Object { $_ -replace "0\.0\.0", "$env:GITHUB_REF_NAME" } |
Set-Content "./AutoLinker.h" -Encoding UTF8
Get-Content "./AutoLinker.h" -Encoding UTF8 | Out-String | Write-Output
shell: pwsh

- name: Set Build
run: |
(Get-Content "./AutoLinker.h" -Encoding UTF8) |
(Get-Content "./AutoLinker.h" -Encoding UTF8 -Raw) |
ForEach-Object { $_ -replace "1000000", "$env:GITHUB_RUN_NUMBER" } |
Set-Content "./AutoLinker.h" -Encoding UTF8
Get-Content "./AutoLinker.h" -Encoding UTF8 | Out-String | Write-Output
Expand Down

0 comments on commit ec6c871

Please sign in to comment.