Merge pull request #22 from ulfaslakprecis/patch-1 #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump Version | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
bump_version: | |
if: "!startsWith(github.event.head_commit.message, 'bump:')" | |
runs-on: ubuntu-latest | |
name: "Bump version and create changelog with commitizen" | |
steps: | |
- id: check-out | |
name: Check out | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PAT }} | |
- id: cz | |
name: Bump and changelog using commitizen | |
uses: commitizen-tools/[email protected] | |
with: | |
github_token: ${{ secrets.PAT }} | |
- id: print-version | |
name: Print Version | |
run: echo "Bumped to version ${{ steps.cz.outputs.version }}" |