Skip to content

Commit

Permalink
Update pre-release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTitusTech committed Aug 30, 2024
1 parent 2a355c0 commit a218453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a218453

Please sign in to comment.