Skip to content

Commit cf14a7b

Browse files
committed
Set GitHub credentials for pushing to clone when creating PR to remove patch
1 parent 0bd62e1 commit cf14a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/tools/apply-patches

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ do
3535
echo "[INFO] Branch $branch_name already exists; assuming PR already exists"
3636
else
3737
tmpdir="$(mktemp -d)"
38-
git clone --depth 1 "$(git remote get-url origin)" "$tmpdir"
38+
git clone --depth 1 "$(git remote get-url origin | sed "s,https://,https://x-access-token:$GITHUB_TOKEN@,")" "$tmpdir"
3939
cd "$tmpdir"
4040
git checkout -b "$branch_name"
4141
git rm "$patchfile"

0 commit comments

Comments
 (0)