Inject token into push like vsts does

This commit is contained in:
Wesley Wigham 2018-05-14 08:39:32 -07:00
parent d990f294f8
commit 8a0aa99327
No known key found for this signature in database
GPG Key ID: D59F87F60C5400C9

View File

@ -27,7 +27,7 @@ runSequence([
["git", ["add", "."]], // Add all changes
["git", ["commit", "-m", `"Update user baselines"`]], // Commit all changes
["git", ["remote", "add", "fork", remoteUrl]], // Add the remote fork
["git", ["push", "--set-upstream", "fork", branchName]] // push the branch
["git", ["-c", `http.extraheader="AUTHORIZATION: basic ${process.argv[2]}"`, "push", "--set-upstream", "fork", branchName]] // push the branch
]);
const gh = new Octokit();