mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55: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: |
|
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
|
||||||
git tag $version
|
shell: pwsh
|
||||||
git push origin $version
|
|
||||||
|
- 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
|
shell: pwsh
|
||||||
|
|
||||||
- name: Create and Upload Release
|
- name: Create and Upload Release
|
||||||
|
Loading…
Reference in New Issue
Block a user