mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-16 05:10:31 +02:00
fix: fixed semantic versioning format selector
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -68,9 +68,9 @@ jobs:
|
|||||||
id: set_version
|
id: set_version
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.head_ref }}" == "master" ]]; then
|
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
|
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
|
fi
|
||||||
|
|
||||||
- name: Git Version
|
- name: Git Version
|
||||||
@@ -81,7 +81,7 @@ jobs:
|
|||||||
major_pattern: "breaking:"
|
major_pattern: "breaking:"
|
||||||
minor_pattern: "feat:"
|
minor_pattern: "feat:"
|
||||||
enable_prerelease_mode: false
|
enable_prerelease_mode: false
|
||||||
version_format: ${{ steps.set_version.outputs.version_format }}
|
version_format: ${{ steps.set_version.outputs.V_FORMAT }}
|
||||||
|
|
||||||
- name: Create & Push Tag
|
- name: Create & Push Tag
|
||||||
if: github.head_ref == 'master' || github.head_ref == 'dev'
|
if: github.head_ref == 'master' || github.head_ref == 'dev'
|
||||||
|
|||||||
Reference in New Issue
Block a user