mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
build-lxd.yml: Fix discovery of previous tag when running on tag
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
ea7c6aa299
commit
f9c5c61be5
5
.github/workflows/build-lxd.yml
vendored
5
.github/workflows/build-lxd.yml
vendored
@ -79,7 +79,10 @@ jobs:
|
||||
then
|
||||
version="master"
|
||||
else
|
||||
git fetch -fu --tags origin ${{ env.VERSION }}:${{ env.VERSION }}
|
||||
if [[ "${{ github.ref_type }}" != "tag ]] || ! git describe --tags > /dev/null
|
||||
then
|
||||
git fetch -fu --tags origin ${{ env.VERSION }}:${{ env.VERSION }}
|
||||
fi
|
||||
version="$(git describe --tags)"
|
||||
[[ "$version" =~ .*-.*-.* ]] || {
|
||||
git checkout HEAD~1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user