Skip to content

Commit

Permalink
Use installation access token properly (#1697)
Browse files Browse the repository at this point in the history
## Что этот PR делает
Чинит использование токена в воркфлоу.

## Тестирование

https://github.com/ss220club/Paradise-SS220/actions/runs/12263944012
  • Loading branch information
m-dzianishchyts authored Dec 10, 2024
1 parent b78dda5 commit d863d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/merge-upstream/merge_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def run_command(command) -> str:
def setup_repo():
"""Clone the repository and set up the upstream remote."""
print(f"Cloning repository: {TARGET_REPO}")
run_command(f"git clone https://{GITHUB_TOKEN}@github.com/{TARGET_REPO}.git repo")
run_command(f"git clone https://x-access-token:{GITHUB_TOKEN}@github.com/{TARGET_REPO}.git repo")
os.chdir("repo")
run_command(f"git remote add upstream https://{GITHUB_TOKEN}@github.com/{UPSTREAM_REPO}.git")
run_command(f"git remote add upstream https://x-access-token:{GITHUB_TOKEN}@github.com/{UPSTREAM_REPO}.git")
print(run_command(f"git remote -v"))


Expand Down

0 comments on commit d863d71

Please sign in to comment.