Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dissectum committed Sep 14, 2023
1 parent 1f3e6a0 commit 3d5cc46
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,11 @@ jobs:
shell: bash
run: |
is_release=${{ startsWith(github.ref, 'refs/tags/v') }}
tag=$(git describe --tags --match "v*" ${{ github.ref }} || true)
tag=$(git describe --tags --match "v*" ${{ github.ref }} || date "+v0.0.0-%y%m%d-$(git rev-parse --short HEAD)")
if ! $($is_release) ; then
prefix=${tag%-*-*}
suffix=${tag#$prefix-}
next=${prefix##*.}
((next++))
prefix=${prefix%.*}
tag="$prefix.$next-Preview.$suffix"
tag=$prefix.$next-Preview.$suffix
fi
echo tag=$tag | tee -a $GITHUB_OUTPUT
Expand Down

0 comments on commit 3d5cc46

Please sign in to comment.