Skip to content

Commit

Permalink
ci: zero dev version (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47-bot authored Dec 30, 2023
1 parent bc8d99b commit 9ff3a99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ jobs:

- name: Set Dev version
if: github.ref == 'refs/heads/main'
run: echo "VERSION=$(git describe --long --tags | sed 's/^v//;0,/-/s//./')" >> $GITHUB_ENV
run: |
version="$(git describe --long --tags | sed 's/^v//;0,/-/s//./')"
if [ -z "${version}" ]; then
version="0.0.0.$(git rev-list --count HEAD)-g$(git rev-parse --short HEAD)"
fi
echo "VERSION=${version}" >> $GITHUB_ENV
- name: Set Release version
if: startsWith(github.ref, 'refs/tags/v')
Expand Down

0 comments on commit 9ff3a99

Please sign in to comment.