Skip to content

Commit 833f901

Browse files
committed
Add fix/hotfix trigger
1 parent bfe2a07 commit 833f901

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/auto-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
run: npm install -g semver
3535

3636
- name: Release Minor Version
37-
if: github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, '[release]:')
37+
if: github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'fix:')
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
4040
run: |
4141
LATEST_VERSION=$(gh release list --exclude-drafts -L 1 | awk {'print $3'})
4242
semver $LATEST_VERSION || (echo "latest release is not in valid semantic version format: ${LATEST_VERSION}" && exit 1)
43-
MINOR_BUMP_VERSION=$(semver $LATEST_VERSION -i minor)
44-
gh workflow run manual-release.yml -f version=$MINOR_BUMP_VERSION -f branch=main -f prerelease=false
43+
BUMP_VERSION=$(semver $LATEST_VERSION -i patch)
44+
gh workflow run manual-release.yml -f version=$BUMP_VERSION -f branch=main -f prerelease=false
4545
# gh run watch $RUN_ID --exit-status
4646
4747
- name: Release Candidate Version

0 commit comments

Comments
 (0)