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 68a758e commit 1c47f0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ jobs:
with:
fetch-depth: 0
- id: meta
shell: bash
run: |
date +%y%m%d
is_release=${{ startsWith(github.ref, 'refs/tags/v') }}
tag=$(git describe --tags --match "v*" ${{ github.ref }} || true)
if [[ $tag != v* ]]; then
tag="v0.0.0"
tag=$(date "+$tag-%y%m%d-$(git rev-parse --short HEAD)")
tag=$(date "+v0.0.0-%y%m%d-$(git rev-parse --short HEAD)")
fi
if ! $($is_release) ; then
prefix=${tag%-*-*}
Expand Down

0 comments on commit 1c47f0b

Please sign in to comment.