Skip to content

Commit 7ec5c1f

Browse files
committed
ci(github-action): use commitizen github action
1 parent 750213c commit 7ec5c1f

File tree

1 file changed

+9
-30
lines changed

1 file changed

+9
-30
lines changed

.github/workflows/bumpversion.yml

+9-30
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,13 @@ jobs:
99
bump-version:
1010
if: "!startsWith(github.event.head_commit.message, 'bump:')"
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
python-version: ['3.x']
12+
name: "Bump version and create changelog with commitizen"
1513
steps:
16-
- uses: actions/checkout@v2
17-
with:
18-
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
19-
fetch-depth: 0
20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v1
22-
with:
23-
python-version: ${{ matrix.python-version }}
24-
- name: Install dependencies
25-
run: |
26-
python --version
27-
python -m pip install -U pip poetry
28-
- name: Configure repo
29-
run: |
30-
git config --local user.email "action@github.com"
31-
git config --local user.name "GitHub Action"
32-
git pull origin master --tags
33-
poetry install --no-dev
34-
- name: Create bump
35-
run: |
36-
poetry run cz bump --yes --changelog
37-
git tag
38-
- name: Push changes
39-
uses: Woile/github-push-action@master
40-
with:
41-
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
42-
tags: "true"
14+
- name: Check out
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- name: Create bump and changelog
19+
uses: commitizen-tools/commitizen-action@master
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)