mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-14 04:10:30 +02:00
Compare commits
3 Commits
2.0.0-prer
...
2.0.0rc25
| Author | SHA1 | Date | |
|---|---|---|---|
| b7df0bfdcd | |||
| 378d1d60f1 | |||
| e381992f8e |
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@@ -64,17 +64,18 @@ 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
|
- name: set version format
|
||||||
id: set_version
|
id: version_format
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.head_ref }}" == "master" ]]; then
|
if [[ ${{ github.head_ref }} == 'master' ]]; then
|
||||||
echo "V_FORMAT=${major}.${minor}.${patch}" >> $GITHUB_ENV
|
echo "version_format=\${major}.\${minor}.\${patch}" >> $GITHUB_OUTPUT
|
||||||
elif [[ "${{ github.head_ref }}" == "dev" ]]; then
|
else
|
||||||
echo "V_FORMAT=${major}.${minor}.${patch}-prerelease${increment}" >> $GITHUB_ENV
|
echo "version_format=\${major}.\${minor}.\${patch}rc\${increment}" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: get version format
|
- name: print version format
|
||||||
run: echo "${{ steps.set_version.outputs.V_FORMAT }}" >> $GITHUB_STEP_SUMMARY
|
run: |
|
||||||
|
echo "Version format: ${{ steps.version_format.outputs.version_format }}"
|
||||||
|
|
||||||
- name: Git Version
|
- name: Git Version
|
||||||
uses: PaulHatch/semantic-version@v5.4.0
|
uses: PaulHatch/semantic-version@v5.4.0
|
||||||
@@ -84,7 +85,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: ${{ steps.version_format.outputs.version_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