mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
29 lines
586 B
YAML
29 lines
586 B
YAML
name: Bump Version on Merge
|
|
on:
|
|
pull_request:
|
|
types: [closed]
|
|
|
|
permissions:
|
|
contents: write
|
|
issues: write
|
|
|
|
jobs:
|
|
bump-version:
|
|
if: github.event.pull_request.merged == true
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
ssh-key: "${{ secrets.COMMIT_KEY }}"
|
|
|
|
- name: Create bump and changelog
|
|
uses: commitizen-tools/commitizen-action@master
|
|
with:
|
|
push: false
|
|
|
|
- name: Push using ssh
|
|
run: |
|
|
git push origin main --tags
|