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 6c4b827 commit f7ebdf8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,21 @@ jobs:
fetch-depth: 0
- id: meta
run: |
echo 0
is_release=${{ startsWith(github.ref, 'refs/tags/v') }}
tag=$(git describe --tags --match "v*" ${{ github.ref }} || true)
if [[ $tag != v* ]]; then
tag=$(date "+v0.0.0-%y%m%d-$(git rev-parse --short HEAD)")
fi
echo 1
if ! $($is_release) ; then
prefix=${tag%-*-*}
suffix=${tag#$prefix-}
next=${prefix##*.}
echo 0
((next++))
echo 1
prefix=${prefix%.*}
tag="$prefix.$next-Preview.$suffix"
fi
echo 2
echo tag=$tag | tee -a $GITHUB_OUTPUT
echo version=${tag#v} | tee -a $GITHUB_OUTPUT
echo is_release=$is_release | tee -a $GITHUB_OUTPUT
Expand Down

0 comments on commit f7ebdf8

Please sign in to comment.