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