Skip to content

Commit 113fa75

Browse files
committed
fix(publish): checkout main branch
1 parent 211a8f7 commit 113fa75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pypi-publish.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ jobs:
2626
2727
- name: Commit updated pyproject.toml
2828
run: |
29+
git fetch origin main
30+
git checkout main
2931
git config user.name "GitHub Actions"
3032
git config user.email "[email protected]"
3133
git add pyproject.toml
3234
git commit -m "Bump version to ${{ env.version }}"
33-
git push
35+
git push origin main
3436
working-directory: src/python
3537

3638
- name: Install dependencies

0 commit comments

Comments
 (0)