From 92f2d0b72de3d6bf75c72ce2c57b69901222fdde Mon Sep 17 00:00:00 2001 From: Jorim Tielemans Date: Fri, 17 Jan 2025 01:47:47 +0100 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8012a95..64d9a4b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,17 +34,13 @@ jobs: poetry version $VERSION poetry lock - - name: Checkout main branch - run: | - git checkout main - - - name: Commit version bump to repository + - name: Push version bump to main run: | git config user.name "GitHub Actions" git config user.email "actions@github.com" git add pyproject.toml poetry.lock git commit -m "Bump version to $VERSION" - git push origin main + git push origin HEAD:main # Push from detached HEAD directly to main - name: Build the package and publish to PyPI env: