Skip to content

Commit d56a260

Browse files
authored
fix: get tag
1 parent 91a6b3e commit d56a260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Get the current tag
2929
id: currentTag
30-
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
30+
run: git fetch --prune --unshallow && TAG=$(git describe --tags --abbrev=0) && echo $TAG && echo "TAG="$TAG >> "$GITHUB_ENV"
3131

3232
- name: Build and push Docker image
3333
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)