Skip to content

Commit

Permalink
try this?
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Nov 14, 2023
1 parent cadf8b3 commit 30cd243
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ if (userName && userEmail) {
await $({ stdio: "inherit" })`git config --global user.email ${userEmail}`;
}

const { hostname } = new URL(githubContext.server_url);
const GITHUB_TOKEN = core.getInput("token");
const prefix = new URL(githubContext.server_url).origin + "/";
const githubToken = core.getInput("token");
await $({
stdio: "inherit",
env: { GITHUB_TOKEN },
})`gh auth setup-git --hostname ${hostname}`;
})`git config --global http.${prefix}.extraheader ${`AUTHORIZATION: basic ${githubToken}`}`;

0 comments on commit 30cd243

Please sign in to comment.