Skip to content

Commit

Permalink
🐛 Remove lingering $
Browse files Browse the repository at this point in the history
  • Loading branch information
ChildMindInstituteCNL committed Nov 6, 2024
1 parent 0cc9df6 commit c689b91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpac_regression_dashboard/generate_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def add_heatmap_to_branch(file: Heatmap) -> None:
temp_dir = Path(_temp_dir)
local_repo = Repo.clone_from(
repo.clone_url.replace(
"https://", f"https://${_ENV.github_token}:x-oauth-basic@"
"https://", f"https://{_ENV.github_token}:x-oauth-basic@"
),
temp_dir,
branch=branch_name,
Expand All @@ -85,6 +85,7 @@ def add_heatmap_to_branch(file: Heatmap) -> None:
svg2png(background_color="white", url=str(svg_path), write_to=str(png_path))
local_repo.index.add([png_path])
local_repo.index.commit(":loud_sound: Add heatmap image")

try:
local_repo.remotes.origin.push(branch_name)
except GitCommandError:
Expand Down

0 comments on commit c689b91

Please sign in to comment.