Skip to content

Commit 164a707

Browse files
committed
add fix in workflow
1 parent d7ca9de commit 164a707

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
permissions:
99
contents: write
1010

11-
11+
1212
jobs:
1313
release:
1414
runs-on: ubuntu-latest
@@ -17,6 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
20+
branch: main
2021

2122
- name: Set up Python
2223
uses: actions/setup-python@v5
@@ -30,7 +31,7 @@ jobs:
3031
git config user.name "github-actions"
3132
git config user.email "actions@github.com"
3233
git commit -am "chore: set version from $TAG_NAME" || echo "No changes to commit"
33-
git push origin HEAD:${GITHUB_REF_NAME}
34+
git push origin main
3435
3536
- name: Verify new version
3637
run: grep __version__ pytest_htmlx/__init__.py

0 commit comments

Comments
 (0)