From 8576c8919eeb5f4cd685b26d46e0edb10459ceec Mon Sep 17 00:00:00 2001 From: rhengeveldbordex <113895083+rhengeveldbordex@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:00:08 +0200 Subject: [PATCH] Fixed bumpversion --- .bumpversion.cfg | 8 ++++++++ .github/workflows/python-publish.yml | 7 +++---- transsmart_connector/__init__.py | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .bumpversion.cfg diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 0000000..b9f2af0 --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,8 @@ +[bumpversion] +current_version = 0.0.1 +commit = True +tag = True + +[bumpversion:file:setup.py] + +[bumpversion:file:your_package/__init__.py] diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index e29dc5b..6a31ef6 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -32,9 +32,7 @@ jobs: - name: Bump version run: | - current_version=$(bump2version --dry-run --list minor | grep current_version | sed -r s,"^.*=",,) - new_version=$(bump2version --dry-run --list minor | grep new_version | sed -r s,"^.*=",,) - bump2version --new-version $new_version minor + bump2version --config-file .bumpversion.cfg --allow-dirty --verbose minor - name: Commit and push changes env: @@ -42,7 +40,8 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit -am "Bump minor version [skip ci]" + git add . + git commit -m "Bump minor version [skip ci]" git push - name: Build package diff --git a/transsmart_connector/__init__.py b/transsmart_connector/__init__.py index e69de29..5a52a0a 100644 --- a/transsmart_connector/__init__.py +++ b/transsmart_connector/__init__.py @@ -0,0 +1 @@ +from .transsmart_connector import TranssmartConnector \ No newline at end of file