Skip to content

Commit f48fe2c

Browse files
Another try
1 parent 88f09eb commit f48fe2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/python-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ jobs:
3434
- name: Update version number
3535
run: |
3636
# Note: the following account information will not work on GHES
37+
git checkout HEAD^
3738
git config user.name "github-actions[bot]"
3839
git config user.email ""
3940
python increment_version.py
4041
git add .
4142
git commit -m "generated"
42-
git push
43+
git push origin HEAD:main
4344
- name: Build package
4445
run: python -m build
4546
- name: Publish package

0 commit comments

Comments
 (0)