From f347d329ada5259d34d69f848d50d0f6841fe77d Mon Sep 17 00:00:00 2001 From: overflowerror Date: Sun, 4 Aug 2024 21:26:59 +0200 Subject: [PATCH] chore: Add bump workflow --- .github/workflows/bump-version.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/bump-version.yml diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml new file mode 100644 index 0000000..3ae9519 --- /dev/null +++ b/.github/workflows/bump-version.yml @@ -0,0 +1,22 @@ +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: + - name: Check out + uses: "actions/checkout@v3" + with: + token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" + fetch-depth: 0 + - name: Create bump and changelog + uses: "commitizen-tools/commitizen-action@master" + with: + github_token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" \ No newline at end of file