Skip to content

Commit 92f2d0b

Browse files
authored
Update publish.yml
1 parent c673f8d commit 92f2d0b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,13 @@ jobs:
3434
poetry version $VERSION
3535
poetry lock
3636
37-
- name: Checkout main branch
38-
run: |
39-
git checkout main
40-
41-
- name: Commit version bump to repository
37+
- name: Push version bump to main
4238
run: |
4339
git config user.name "GitHub Actions"
4440
git config user.email "[email protected]"
4541
git add pyproject.toml poetry.lock
4642
git commit -m "Bump version to $VERSION"
47-
git push origin main
43+
git push origin HEAD:main # Push from detached HEAD directly to main
4844
4945
- name: Build the package and publish to PyPI
5046
env:

0 commit comments

Comments
 (0)