Skip to content

Commit 7dfe4c1

Browse files
committed
Update command to get the latest release tag
1 parent 25ca799 commit 7dfe4c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-latest-plugin-zip.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222

2323
- name: Get tag name
2424
id: get_tag
25-
run: echo "tag_name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
25+
run: |
26+
LATEST_TAG=$(git describe --tags --abbrev=0)
27+
echo "tag_name=$LATEST_TAG" >> $GITHUB_OUTPUT
2628
2729
- name: Install dependencies
2830
run: npm ci

0 commit comments

Comments
 (0)