Skip to content

Commit

Permalink
Remove leading 'v'
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-abblix committed Jul 9, 2024
1 parent 7df11c8 commit bcae385
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
id: get_version
run: |
tag=$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null || echo "v0.0.1")
echo "version=$tag" >> $GITHUB_ENV
echo "::set-output name=version::$tag"
echo "Resolved version: $tag"
version=${tag#v} # Remove leading 'v' if present
echo "version=$version" >> $GITHUB_ENV
echo "::set-output name=version::$version"
echo "Resolved version: $version"
build:
needs: get_version
Expand Down

0 comments on commit bcae385

Please sign in to comment.