Compare commits

..

2 Commits

Author SHA1 Message Date
debug
4234f2d6f5 debug 2025-01-01 22:09:09 +00:00
Sebastián Ramírez
81e10fecef Merge 13dc329207 into dd649ff814 2025-01-01 22:07:13 +00:00
3 changed files with 4 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Dump GitHub context
env:
@@ -49,8 +50,8 @@ jobs:
with:
limit-access-to-actor: true
env:
GITHUB_TOKEN: ${{ secrets.FASTAPI_PEOPLE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: FastAPI People Contributors
run: python ./scripts/contributors.py
env:
GITHUB_TOKEN: ${{ secrets.FASTAPI_PEOPLE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

View File

@@ -1,5 +1,4 @@
import logging
import secrets
import subprocess
from collections import Counter
from datetime import datetime
@@ -286,7 +285,7 @@ def main() -> None:
subprocess.run(
["git", "config", "user.email", "github-actions@github.com"], check=True
)
branch_name = f"fastapi-people-contributors-{secrets.token_hex(4)}"
branch_name = "fastapi-people-contributors"
logging.info(f"Creating a new branch {branch_name}")
subprocess.run(["git", "checkout", "-b", branch_name], check=True)
logging.info("Adding updated file")