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 51ce442 commit aa33cc4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,19 @@ jobs:
uses: microsoft/setup-msbuild@v1.1

- name: Set Version
run: (Get-Content ".\AutoLinker.h" -Encoding UTF8) | ForEach-Object {$_ -replace "0\.0\.0", "$env:GITHUB_REF_NAME"} | Set-Content ".\AutoLinker.h" -Encoding UTF8
run: |
(Get-Content ".\AutoLinker.h" -Encoding UTF8) |
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) | ForEach-Object {$_ -replace "1000000", "$env:GITHUB_RUN_NUMBER"} | Set-Content ".\AutoLinker.h" -Encoding UTF8
run: |
(Get-Content ".\AutoLinker.h" -Encoding UTF8) |
ForEach-Object { $_ -replace "1000000", "$env:GITHUB_RUN_NUMBER" } |
Set-Content ".\AutoLinker.h" -Encoding UTF8
Get-Content ".\AutoLinker.h" -Encoding UTF8 | Out-String | Write-Output
shell: pwsh

- name: Build
Expand Down

0 comments on commit aa33cc4

Please sign in to comment.