Skip to content

Commit 261c623

Browse files
committed
fix build tag
1 parent f430265 commit 261c623

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: Env
1919
# set TAG=DEV if not a tag
2020
run: |
21-
if [[ "refs/tags/1.7.0" = refs/tags/* ]]; then
22-
export TAG=${GITHUB_REF:10}
21+
if [[ ${{ github.ref }} = refs/tags/* ]]; then
22+
export TAG=$(echo ${{ github.ref }} | sed -e "s/refs\/tags\///g")
2323
else
2424
export TAG=DEV
2525
fi

0 commit comments

Comments
 (0)