Compare commits

...

3 Commits

Author SHA1 Message Date
b7df0bfdcd fix: added escape for variable names 2024-10-25 15:27:50 +02:00
378d1d60f1 fix: adjusting pipeline for prod as well 2024-10-25 15:22:35 +02:00
e381992f8e fix: fixing dev versioning 2024-10-25 15:09:15 +02:00

View File

@@ -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'