Merge pull request #5 from bearomorphism/typo #6
This file contains hidden or 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: | |
if: "!contains(github.event.head_commit.message, 'bump')" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.x'] | |
steps: | |
- name: Check out | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python --version | |
python -m pip install -U commitizen | |
- name: Configure repo | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git pull origin master --tags | |
- name: Create bump | |
run: | | |
cz bump --yes | |
git tag | |
- name: Push changes | |
uses: Woile/github-push-action@master | |
with: | |
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
tags: "true" |