mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 14:45:52 -06:00
Update pre-release.yaml
This commit is contained in:
parent
0a472c06c4
commit
bce4868896
14
.github/workflows/pre-release.yaml
vendored
14
.github/workflows/pre-release.yaml
vendored
@ -23,8 +23,18 @@ jobs:
|
||||
run: |
|
||||
$version = (Get-Date -Format "yy-MM-dd")
|
||||
echo "version=$version" >> $env:GITHUB_ENV
|
||||
git tag $version
|
||||
git push origin $version
|
||||
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 {
|
||||
git tag $env:VERSION
|
||||
git push origin $env:VERSION
|
||||
}
|
||||
shell: pwsh
|
||||
|
||||
- name: Create and Upload Release
|
||||
|
Loading…
Reference in New Issue
Block a user