Skip to content

Commit 15d0004

Browse files
committed
Grant write access to repository
1 parent 95f9fe2 commit 15d0004

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/update.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
update:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113
steps:
1214
- uses: actions/setup-python@main
1315
- uses: astral-sh/setup-uv@main
@@ -20,3 +22,4 @@ jobs:
2022
- uses: ad-m/github-push-action@master
2123
with:
2224
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
branch: ${{ github.ref }}

generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
for branch in ('3.13', '3.12', '3.11', '3.10', '3.9'):
2323
try:
2424
Repo.clone_from(f'https://github.com/python/python-docs-{language}.git', clone_path, depth=1, branch=branch)
25-
except GitCommandError as e:
25+
except GitCommandError:
2626
print(f'failed to clone {language} {branch}')
2727
continue
2828
try:

0 commit comments

Comments
 (0)