From b84c0d9248f9ef6ecef158e137c98896709eaba9 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Wed, 17 Jul 2024 00:52:12 -0500 Subject: [PATCH] Update pre-release.yaml --- .github/workflows/pre-release.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 2e339826c8..a90526a6ff 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -21,7 +21,7 @@ jobs: - name: Extract Version from winutil.ps1 id: extract_version run: | - $version = (Get-Date -Format "yy-MM-dd") + $version = (Get-Date -Format "yy.MM.dd") echo "version=$version" >> $env:GITHUB_ENV shell: pwsh @@ -29,11 +29,11 @@ jobs: id: create_tag run: | $tagExists = git tag -l $env:VERSION - if ($tagExists) { - Write-Host "Tag $env:VERSION already exists, skipping tag creation" - } else { + if (-not $tagExists) { git tag $env:VERSION git push origin $env:VERSION + } else { + Write-Host "Tag $env:VERSION already exists, skipping tag creation" } shell: pwsh