Update pre-release.yaml

This commit is contained in:
Chris Titus 2024-07-17 00:52:12 -05:00
parent f51c30023a
commit b84c0d9248

View File

@ -21,7 +21,7 @@ jobs:
- name: Extract Version from winutil.ps1 - name: Extract Version from winutil.ps1
id: extract_version id: extract_version
run: | run: |
$version = (Get-Date -Format "yy-MM-dd") $version = (Get-Date -Format "yy.MM.dd")
echo "version=$version" >> $env:GITHUB_ENV echo "version=$version" >> $env:GITHUB_ENV
shell: pwsh shell: pwsh
@ -29,11 +29,11 @@ jobs:
id: create_tag id: create_tag
run: | run: |
$tagExists = git tag -l $env:VERSION $tagExists = git tag -l $env:VERSION
if ($tagExists) { if (-not $tagExists) {
Write-Host "Tag $env:VERSION already exists, skipping tag creation"
} else {
git tag $env:VERSION git tag $env:VERSION
git push origin $env:VERSION git push origin $env:VERSION
} else {
Write-Host "Tag $env:VERSION already exists, skipping tag creation"
} }
shell: pwsh shell: pwsh