Reworked to use a custom token.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 38s

This commit is contained in:
2023-11-19 21:55:08 +01:00
parent 79f76b65f8
commit 1fd23b6ede
3 changed files with 33 additions and 33 deletions

View File

@ -17,7 +17,7 @@ async function getAndPostPullRequests() {
const labelsInput = core.getInput("labels");
const dueDate = core.getInput("due_date");
const milestone = core.getInput("milestone");
const githubToken = core.getInput("github_token");
const token = core.getInput("token");
let branch = core.getInput("branch");
// Construct the URL for the requests
@ -25,10 +25,10 @@ async function getAndPostPullRequests() {
// Headers with Authorization
const headers = {
Authorization: `token ${githubToken}`,
Authorization: `token ${token}`,
"Content-Type": "application/json",
};
core.info(`token ${githubToken}`);
core.info(`token ${token}`);
// Logic for current branch
if (!branch) {
const ref = process.env.GITHUB_REF;