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 8e29808 commit 27f2010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
uses: microsoft/setup-msbuild@v1.1

- name: Set Version
run: (Get-Content "${{env.SOLUTION_FILE_PATH}}\AutoLinker.h" -Raw) -replace "0\.0\.0", "$env:GITHUB_REF_NAME" | Set-Content "${{env.SOLUTION_FILE_PATH}}\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
shell: pwsh

- name: Set Build
run: (Get-Content "${{env.SOLUTION_FILE_PATH}}\AutoLinker.h" -Raw) -replace "1000000", "$env:GITHUB_RUN_NUMBER" | Set-Content "${{env.SOLUTION_FILE_PATH}}\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
shell: pwsh

- name: Build
Expand Down

0 comments on commit 27f2010

Please sign in to comment.