Skip to content

Commit 7fc5f68

Browse files
committed
fix: git fetch --tags approach
1 parent bbd225f commit 7fc5f68

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ jobs:
2424
GA_USERNAME: ${{ secrets.PAT_USERNAME }}
2525
GA_TOKEN: ${{ secrets.PAT_TOKEN }}
2626

27+
- name: Get latest Git tag
28+
id: tag
29+
run: |
30+
git fetch --tags
31+
TAG=$(git describe --tags --abbrev=0)
32+
echo "tag=$TAG" >> $GITHUB_OUTPUT
2733
- name: Get current tag
2834
run: |
29-
echo "Tag: ${{ github.ref_name }}"
35+
echo "Tag: ${{ steps.tag.outputs.tag }}"
3036
- name: Log in to the Github Container registry
3137
uses: docker/login-action@v3
3238
with:

0 commit comments

Comments
 (0)