Skip to content

Commit 151eb42

Browse files
committed
Adds version commit to branch on Release
1 parent 392020a commit 151eb42

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/python-publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@ jobs:
4141
4242
- name: Set __version__
4343
shell: bash
44-
run: sed -i "s/PLACEHOLDER/${VERSION}/g" "fortls/_version.py"
44+
run: sed -i "s/\".*\"/\"${VERSION}\"/g" "fortls/_version.py"
45+
46+
- name: Commit the new version
47+
shell: bash
48+
run: |
49+
git config --global user.name 'gnikit'
50+
git config --global user.email '[email protected]'
51+
git commit fortls/_version.py -am "Auto-Update version"
52+
git push
4553
4654
- name: Build package
4755
run: python -m build

0 commit comments

Comments
 (0)