Update merge-main-into-prs.yml (#16199)
This commit is contained in:
parent
e97782943b
commit
1210b49cd2
2 changed files with 5 additions and 11 deletions
7
.github/workflows/merge-main-into-prs.yml
vendored
7
.github/workflows/merge-main-into-prs.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue