Skip to content

Commit

Permalink
fix build tag
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Sep 18, 2023
1 parent f430265 commit 261c623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Env
# set TAG=DEV if not a tag
run: |
if [[ "refs/tags/1.7.0" = refs/tags/* ]]; then
export TAG=${GITHUB_REF:10}
if [[ ${{ github.ref }} = refs/tags/* ]]; then
export TAG=$(echo ${{ github.ref }} | sed -e "s/refs\/tags\///g")
else
export TAG=DEV
fi
Expand Down

0 comments on commit 261c623

Please sign in to comment.