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 058ce25 commit 23545f6
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,13 +25,13 @@ jobs:
uses: microsoft/setup-msbuild@v1.1

- name: Set Version
run: (Get-Content ".\AutoLinker.h") -replace "0\.0\.0", "$env:GITHUB_REF_NAME" | Set-Content ".\AutoLinker.h"
run: (Get-Content "${{env.SOLUTION_FILE_PATH}}\AutoLinker.h") -replace "0\.0\.0", "$env:GITHUB_REF_NAME" | Set-Content "${{env.SOLUTION_FILE_PATH}}\AutoLinker.h"
shell: pwsh

- name: Set Build
run: (Get-Content ".\AutoLinker.h") -replace "1000000", "$env:GITHUB_RUN_NUMBER" | Set-Content ".\AutoLinker.h"
run: (Get-Content "${{env.SOLUTION_FILE_PATH}}\AutoLinker.h") -replace "1000000", "$env:GITHUB_RUN_NUMBER" | Set-Content "${{env.SOLUTION_FILE_PATH}}\AutoLinker.h"
shell: pwsh

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
Expand Down

0 comments on commit 23545f6

Please sign in to comment.