Merge pull request #6 from KazanExpress/feat/update_kk #14
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: | |
- master | |
jobs: | |
bump-and-push-tag: | |
runs-on: ubuntu-latest | |
container: ghcr.io/kazanexpress/commitizen:v2 | |
if: "!contains(github.event.head_commit.message, 'bump:')" | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v1 | |
- name: lint commit message | |
run: | | |
git config --global --add safe.directory /__w/keycloak-kazanexpress/keycloak-kazanexpress | |
cz check -m "$(git log -1 --pretty=%B)" | |
- name: bump & push | |
run: | | |
git config --global user.name 'Machine User' | |
git config --global user.email '[email protected]' | |
git remote set-url origin https://x-access-token:${{ secrets.GH_MACHINE_RW_TOKEN }}@github.com/${{ github.repository }} | |
cz bump --changelog | |
git push origin HEAD:master && git push --tags |