Skip to content

Commit a729d9e

Browse files
committed
workflow adjusted
1 parent 1cda4f0 commit a729d9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
- name: Get latest tag
2626
id: get_latest_tag
2727
run: |
28-
if [ $(git tag -l | wc -l) -eq 0 ]; then
28+
LATEST_TAG=$(git tag -l --sort=-v:refname | head -n 1)
29+
if [ -z "$LATEST_TAG" ]; then
2930
echo "No tags found"
3031
exit 1
3132
fi
32-
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
3333
echo "latest_tag=$LATEST_TAG" >> $GITHUB_ENV
3434
3535
- name: Extract Changelog

0 commit comments

Comments
 (0)