Skip to content

Commit

Permalink
fix: adjusting pipeline for prod as well
Browse files Browse the repository at this point in the history
  • Loading branch information
creyD committed Oct 25, 2024
1 parent e381992 commit 378d1d6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,19 @@ jobs:
git config --local user.email "15138480+creyD@users.noreply.github.com"
git config --local user.name "creyD"
- name: set version format
id: version_format
run: |
if [[ ${{ github.head_ref }} == 'master' ]]; then
echo "version_format=${major}.${minor}.${patch}" >> $GITHUB_OUTPUT
else
echo "version_format=${major}.${minor}.${patch}rc${increment}" >> $GITHUB_OUTPUT
fi
- name: print version format
run: |
echo "Version format: ${{ steps.version_format.outputs.version_format }}"
- name: Git Version
uses: PaulHatch/semantic-version@v5.4.0
id: git_version
Expand All @@ -72,7 +85,7 @@ jobs:
major_pattern: "breaking:"
minor_pattern: "feat:"
enable_prerelease_mode: false
version_format: "${major}.${minor}.${patch}rc${increment}"
version_format: ${{ steps.version_format.outputs.version_format }}

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

0 comments on commit 378d1d6

Please sign in to comment.