Update merge-main-into-prs.yml (#16199)

This commit is contained in:
Glenn Jocher 2024-09-11 00:32:58 +02:00 committed by GitHub
parent e97782943b
commit 1210b49cd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 11 deletions

View file

@ -33,8 +33,8 @@ jobs:
import os
import time
g = Github(os.getenv('GITHUB_TOKEN'))
repo = g.get_repo(os.getenv('GITHUB_REPOSITORY'))
g = Github("${{ secrets.PERSONAL_ACCESS_TOKEN }}")
repo = g.get_repo("${{ github.repository }}")
# Fetch the default branch name
default_branch_name = repo.default_branch
@ -86,6 +86,3 @@ jobs:
print(f"Branches already up-to-date: {up_to_date_branches}")
print(f"Total errors: {errors}")
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}