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 ec6c871 commit c07625a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ jobs:

- name: Set Version
run: |
(Get-Content "./AutoLinker.h" -Encoding UTF8 -Raw) |
(Get-Content "./AutoLinker.h" -Encoding utf8BOM -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
Set-Content "./AutoLinker.h" -Encoding utf8BOM
Get-Content "./AutoLinker.h" -Encoding utf8BOM | Out-String | Write-Output
shell: pwsh

- name: Set Build
run: |
(Get-Content "./AutoLinker.h" -Encoding UTF8 -Raw) |
(Get-Content "./AutoLinker.h" -Encoding utf8BOM -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
Set-Content "./AutoLinker.h" -Encoding utf8BOM
Get-Content "./AutoLinker.h" -Encoding utf8BOM | Out-String | Write-Output
shell: pwsh

- name: Build
Expand Down
2 changes: 1 addition & 1 deletion AutoLinker.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#pragma once

#include <windows.h>
#include <tchar.h>
Expand Down

0 comments on commit c07625a

Please sign in to comment.