Skip to content

Commit

Permalink
Update pre-release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTitusTech committed Jul 17, 2024
1 parent f51c300 commit b84c0d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ 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

- name: Create Tag
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

Expand Down

0 comments on commit b84c0d9

Please sign in to comment.