mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-13 20:00:30 +02:00
Compare commits
1 Commits
2.0.0-prer
...
2.0.0rc23
| Author | SHA1 | Date | |
|---|---|---|---|
| e381992f8e |
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -64,18 +64,6 @@ jobs:
|
|||||||
git config --local user.email "15138480+creyD@users.noreply.github.com"
|
git config --local user.email "15138480+creyD@users.noreply.github.com"
|
||||||
git config --local user.name "creyD"
|
git config --local user.name "creyD"
|
||||||
|
|
||||||
- name: Set version format
|
|
||||||
id: set_version
|
|
||||||
run: |
|
|
||||||
if [[ "${{ github.head_ref }}" == "master" ]]; then
|
|
||||||
echo "V_FORMAT=${major}.${minor}.${patch}" >> $GITHUB_ENV
|
|
||||||
elif [[ "${{ github.head_ref }}" == "dev" ]]; then
|
|
||||||
echo "V_FORMAT=${major}.${minor}.${patch}-prerelease${increment}" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: get version format
|
|
||||||
run: echo "${{ steps.set_version.outputs.V_FORMAT }}" >> $GITHUB_STEP_SUMMARY
|
|
||||||
|
|
||||||
- name: Git Version
|
- name: Git Version
|
||||||
uses: PaulHatch/semantic-version@v5.4.0
|
uses: PaulHatch/semantic-version@v5.4.0
|
||||||
id: git_version
|
id: git_version
|
||||||
@@ -84,7 +72,7 @@ jobs:
|
|||||||
major_pattern: "breaking:"
|
major_pattern: "breaking:"
|
||||||
minor_pattern: "feat:"
|
minor_pattern: "feat:"
|
||||||
enable_prerelease_mode: false
|
enable_prerelease_mode: false
|
||||||
version_format: "${major}.${minor}.${patch}-prerelease${increment}"
|
version_format: "${major}.${minor}.${patch}rc${increment}"
|
||||||
|
|
||||||
- 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