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
2d3dbe4f6a
commit
2a355c00c8
6
.github/workflows/pre-release.yaml
vendored
6
.github/workflows/pre-release.yaml
vendored
@ -77,7 +77,13 @@ jobs:
|
|||||||
- name: Get latest release tag
|
- name: Get latest release tag
|
||||||
id: get_latest_release
|
id: get_latest_release
|
||||||
run: |
|
run: |
|
||||||
|
git fetch --tags --force
|
||||||
$latestTag = git describe --tags --abbrev=0
|
$latestTag = git describe --tags --abbrev=0
|
||||||
|
if ($LASTEXITCODE -ne 0) {
|
||||||
|
Write-Error "Failed to get latest tag. Error code: $LASTEXITCODE"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
Write-Host "Latest tag: $latestTag"
|
||||||
echo "LATEST_TAG=$latestTag" >> $env:GITHUB_ENV
|
echo "LATEST_TAG=$latestTag" >> $env:GITHUB_ENV
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user