mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-22 05:51:30 -06:00
Update pre-release.yaml
This commit is contained in:
parent
f51c30023a
commit
b84c0d9248
8
.github/workflows/pre-release.yaml
vendored
8
.github/workflows/pre-release.yaml
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user