Skip to content

Commit

Permalink
Next attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Apr 16, 2021
1 parent 45b0112 commit d432510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -21,8 +21,8 @@ jobs:
run: |
$sha = $env:SHA.Substring(0, 7)
Write-Host "Writing $sha to {$env:VERSION_HEADER_FILE}"
$replaced = Get-Content {$env:VERSION_HEADER_FILE} | % { if ($_ -match '#define RADIANT_VERSION "\d+.\d+.\d+([\w\d]*)"') { $_.Replace($matches[1], "rev$sha") } else { $_ } };
$replaced | Out-File {$env:VERSION_HEADER_FILE}
$replaced = Get-Content $env:VERSION_HEADER_FILE | % { if ($_ -match '#define RADIANT_VERSION "\d+.\d+.\d+([\w\d]*)"') { $_.Replace($matches[1], "rev$sha") } else { $_ } };
$replaced | Out-File $env:VERSION_HEADER_FILE
shell: powershell

- name: Add MSBuild to PATH
Expand Down

0 comments on commit d432510

Please sign in to comment.