Skip to content

Commit dc55451

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/tools/apply-patches

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ do
3737
tmpdir="$(mktemp -d)"
3838
git clone --depth 1 "$(git remote get-url origin)" "$tmpdir"
3939
cd "$tmpdir"
40+
git config http.https://github.com/.extraheader "AUTHORIZATION: basic $(printf 'x-access-token:%s' "$GITHUB_TOKEN" | base64)"
4041
git checkout -b "$branch_name"
4142
git rm "$patchfile"
4243
git commit -m "Delete patch $(basename "$patchfile")"

0 commit comments

Comments
 (0)