From ac7480f3ce7acc99f122e5fd9681cb558d5b2912 Mon Sep 17 00:00:00 2001 From: Adriaan <1079135+adriaandotcom@users.noreply.github.com> Date: Fri, 25 Oct 2024 14:35:38 +0200 Subject: [PATCH] Commit version as well --- .github/workflows/python-publish.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 64bb5ef..bf0a93d 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -13,7 +13,7 @@ on: types: [published] permissions: - contents: read + contents: write # Needed to push changes back to the repository jobs: deploy: @@ -34,6 +34,12 @@ jobs: regex: true include: 'setup.py' + - name: Commit version bump + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: 'Version bump in setup.py to ${{ env.VERSION }} [skip ci]' + file_pattern: setup.py + - name: Set up Python uses: actions/setup-python@v3 with: @@ -52,3 +58,4 @@ jobs: with: user: simpleanalytics password: ${{ secrets.PYPI_API_TOKEN }} +