We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c673f8d commit 92f2d0bCopy full SHA for 92f2d0b
.github/workflows/publish.yml
@@ -34,17 +34,13 @@ jobs:
34
poetry version $VERSION
35
poetry lock
36
37
- - name: Checkout main branch
38
- run: |
39
- git checkout main
40
-
41
- - name: Commit version bump to repository
+ - name: Push version bump to main
42
run: |
43
git config user.name "GitHub Actions"
44
git config user.email "[email protected]"
45
git add pyproject.toml poetry.lock
46
git commit -m "Bump version to $VERSION"
47
- git push origin main
+ git push origin HEAD:main # Push from detached HEAD directly to main
48
49
- name: Build the package and publish to PyPI
50
env:
0 commit comments