mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
30 lines
659 B
YAML
30 lines
659 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: true
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: main
|
|
- name: Push using ssh
|
|
run: |
|
|
git push origin main --tags
|