Skip to content

Commit

Permalink
Set GitHub credentials for pushing to clone when creating PR to remov…
Browse files Browse the repository at this point in the history
…e patch
  • Loading branch information
jwodder committed Feb 16, 2021
1 parent 0bd62e1 commit dc55451
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tools/apply-patches
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ do
tmpdir="$(mktemp -d)"
git clone --depth 1 "$(git remote get-url origin)" "$tmpdir"
cd "$tmpdir"
git config http.https://github.com/.extraheader "AUTHORIZATION: basic $(printf 'x-access-token:%s' "$GITHUB_TOKEN" | base64)"
git checkout -b "$branch_name"
git rm "$patchfile"
git commit -m "Delete patch $(basename "$patchfile")"
Expand Down

0 comments on commit dc55451

Please sign in to comment.