Skip to content

Commit

Permalink
fix: fixed semantic versioning format selector
Browse files Browse the repository at this point in the history
  • Loading branch information
creyD committed Oct 25, 2024
1 parent 0bf89fe commit 5903de2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
id: set_version
run: |
if [[ "${{ github.head_ref }}" == "master" ]]; then
echo "::set-output name=version_format::${major}.${minor}.${patch}"
echo "V_FORMAT='${major}.${minor}.${patch}'" >> $GITHUB_OUTPUT
elif [[ "${{ github.head_ref }}" == "dev" ]]; then
echo "::set-output name=version_format::${major}.${minor}.${patch}-rc${increment}"
echo "V_FORMAT='${major}.${minor}.${patch}-rc${increment}'" >> $GITHUB_OUTPUT
fi
- name: Git Version
Expand All @@ -81,7 +81,7 @@ jobs:
major_pattern: "breaking:"
minor_pattern: "feat:"
enable_prerelease_mode: false
version_format: ${{ steps.set_version.outputs.version_format }}
version_format: ${{ steps.set_version.outputs.V_FORMAT }}

- name: Create & Push Tag
if: github.head_ref == 'master' || github.head_ref == 'dev'
Expand Down

0 comments on commit 5903de2

Please sign in to comment.