2025-01-06 14:00:11 -05:00
|
|
|
name: Post Merge
|
2024-12-23 18:42:34 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [closed]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
issues: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
bump-version:
|
2025-01-06 14:00:11 -05:00
|
|
|
name: Cz Bump
|
2024-12-24 11:40:15 -05:00
|
|
|
if: |
|
|
|
|
github.event.pull_request.merged == true &&
|
|
|
|
github.event.pull_request.user.login != 'dependabot[bot]' &&
|
|
|
|
github.event.pull_request.user.login != 'dependabot-preview[bot]'
|
2024-12-23 18:42:34 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out
|
2025-01-06 12:06:10 -05:00
|
|
|
uses: actions/checkout@v4
|
2024-12-23 18:42:34 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
ssh-key: "${{ secrets.COMMIT_KEY }}"
|
|
|
|
|
|
|
|
- name: Create bump and changelog
|
|
|
|
uses: commitizen-tools/commitizen-action@master
|
|
|
|
with:
|
2024-12-24 11:24:04 -05:00
|
|
|
push: false
|
2024-12-24 11:32:47 -05:00
|
|
|
increment: patch
|
2025-01-06 14:00:11 -05:00
|
|
|
branch: main
|
2024-12-24 11:24:04 -05:00
|
|
|
|
2024-12-23 18:42:34 +00:00
|
|
|
- name: Push using ssh
|
|
|
|
run: |
|
|
|
|
git push origin main --tags
|