Skip to content

Commit 61e50eb

Browse files
committed
workflow adjusted
1 parent f1b3b04 commit 61e50eb

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
@@ -28,7 +28,7 @@ jobs:
2828
id: get_latest_tag
2929
run: |
3030
git fetch --tags # Ensure all tags are fetched
31-
LATEST_TAG=$(git tag -l --sort=-v:refname | head -n 1)
31+
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
3232
if [ -z "$LATEST_TAG" ]; then
3333
echo "No tags found"
3434
exit 1
@@ -55,7 +55,7 @@ jobs:
5555
env:
5656
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5757
with:
58-
tag_name: ${{ env.latest_tag }}
58+
tag_name: ${{ env.plugin_version }} # Use the plugin version as the tag name
5959
release_name: "Release ${{ env.plugin_version }}"
6060
body: ${{ env.changelog }}
6161
draft: false

0 commit comments

Comments
 (0)