Skip to content

Commit ac7480f

Browse files
Commit version as well
1 parent aa534f0 commit ac7480f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/python-publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
types: [published]
1414

1515
permissions:
16-
contents: read
16+
contents: write # Needed to push changes back to the repository
1717

1818
jobs:
1919
deploy:
@@ -34,6 +34,12 @@ jobs:
3434
regex: true
3535
include: 'setup.py'
3636

37+
- name: Commit version bump
38+
uses: stefanzweifel/git-auto-commit-action@v4
39+
with:
40+
commit_message: 'Version bump in setup.py to ${{ env.VERSION }} [skip ci]'
41+
file_pattern: setup.py
42+
3743
- name: Set up Python
3844
uses: actions/setup-python@v3
3945
with:
@@ -52,3 +58,4 @@ jobs:
5258
with:
5359
user: simpleanalytics
5460
password: ${{ secrets.PYPI_API_TOKEN }}
61+

0 commit comments

Comments
 (0)