From 7ec5c1fbbb2d7e1b2cc86778cf111d56f3b1294b Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Sun, 30 Aug 2020 16:12:12 +0800 Subject: [PATCH] ci(github-action): use commitizen github action --- .github/workflows/bumpversion.yml | 39 +++++++------------------------ 1 file changed, 9 insertions(+), 30 deletions(-) diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bumpversion.yml index cd4698de67..1e9ce7da59 100644 --- a/.github/workflows/bumpversion.yml +++ b/.github/workflows/bumpversion.yml @@ -9,34 +9,13 @@ jobs: bump-version: if: "!startsWith(github.event.head_commit.message, 'bump:')" runs-on: ubuntu-latest - strategy: - matrix: - python-version: ['3.x'] + name: "Bump version and create changelog with commitizen" steps: - - 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 pip poetry - - name: Configure repo - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git pull origin master --tags - poetry install --no-dev - - name: Create bump - run: | - poetry run cz bump --yes --changelog - git tag - - name: Push changes - uses: Woile/github-push-action@master - with: - github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - tags: "true" + - name: Check out + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Create bump and changelog + uses: commitizen-tools/commitizen-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }}