mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-24 03:45:30 +00:00
Update pre-release.yaml
This commit is contained in:
parent
2a355c00c8
commit
a21845327b
4
.github/workflows/pre-release.yaml
vendored
4
.github/workflows/pre-release.yaml
vendored
@ -78,8 +78,8 @@ jobs:
|
||||
id: get_latest_release
|
||||
run: |
|
||||
git fetch --tags --force
|
||||
$latestTag = git describe --tags --abbrev=0
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
$latestTag = git for-each-ref --sort=-creatordate --format '%(refname:short)' refs/tags --count 1
|
||||
if ($LASTEXITCODE -ne 0 -or [string]::IsNullOrEmpty($latestTag)) {
|
||||
Write-Error "Failed to get latest tag. Error code: $LASTEXITCODE"
|
||||
exit 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user