ci: Check for correct tag

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
Tim Hårek Andreassen 2024-10-03 19:59:28 +02:00
parent 18681cffee
commit 7007d1a89f
No known key found for this signature in database
GPG key ID: E59C7734F0E10EB5

View file

@ -15,7 +15,7 @@ tasks:
- test: | - test: |
just test just test
- build: | - build: |
tag=$(git describe --exact-match 2>/dev/null || true) tag=$(git describe --exact-match --tags HEAD 2>/dev/null || true)
if [ -z "$tag" ]; then if [ -z "$tag" ]; then
echo "Current commit is not a tag; not building anything" echo "Current commit is not a tag; not building anything"
exit 0 exit 0