Skip to content

Commit 1cda4f0

Browse files
committed
workflow adjusted
1 parent dfb71ee commit 1cda4f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
- name: Get latest tag
2626
id: get_latest_tag
2727
run: |
28+
if [ $(git tag -l | wc -l) -eq 0 ]; then
29+
echo "No tags found"
30+
exit 1
31+
fi
2832
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
2933
echo "latest_tag=$LATEST_TAG" >> $GITHUB_ENV
3034

0 commit comments

Comments
 (0)