Don't error on no tags

I jumped the gun a bit :v
This commit is contained in:
наб 2020-12-06 22:54:31 +01:00
parent ec666beb85
commit 5e9c7e5989
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1

View File

@ -38,7 +38,7 @@ tasks:
ssh-keyscan git.sr.ht > ~/.ssh/known_hosts
git push
- release: |
tag="$(git -C tzpfms describe --abbrev=0 --tags)"
tag="$(git -C tzpfms describe --abbrev=0 --tags || echo HEAD~1)"
[ "$(git -C tzpfms rev-list -n1 "$tag")" = "$(git -C tzpfms rev-list -n1 HEAD)" ] || exit 0
mkdir "tzpfms-$tag-bin-amd64"
mv tzpfms/out/zfs-tpm* "tzpfms-$tag-bin-amd64"