Skip to content

Commit c9ecc1b

Browse files
authored
fix publish workflow (#112)
1 parent 2481ee2 commit c9ecc1b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ on:
1818
default: true
1919
type: boolean
2020

21+
permissions:
22+
contents: write
23+
2124
jobs:
2225
build-and-publish:
2326
runs-on: ubuntu-latest
@@ -26,6 +29,7 @@ jobs:
2629
uses: actions/checkout@v4
2730
with:
2831
fetch-depth: 0
32+
token: ${{ secrets.GITHUB_TOKEN }}
2933

3034
- name: Set up Python
3135
uses: actions/setup-python@v4
@@ -98,6 +102,11 @@ jobs:
98102
99103
echo "Updated version to $NEW_VERSION in pyproject.toml and __init__.py"
100104
105+
- name: Configure Git
106+
run: |
107+
git config --local user.email "[email protected]"
108+
git config --local user.name "GitHub Action"
109+
101110
- name: Commit version bump
102111
run: |
103112
git add pyproject.toml stagehand/__init__.py

0 commit comments

Comments
 (0)