From fd560d06963d092ba518ff91c03945ff7b324941 Mon Sep 17 00:00:00 2001 From: Shakar Bakr <5h4k4r.b4kr@gmail.com> Date: Sun, 8 Oct 2023 17:15:55 +0300 Subject: [PATCH] Delete logs Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com> --- index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/index.js b/index.js index 3964b5b..240a79b 100644 --- a/index.js +++ b/index.js @@ -12,10 +12,6 @@ async function run() { console.log(`CWD: ${process.cwd()}`) console.log(`filePath: ${core.getInput('filePath')}`) - const githubToken = core.getInput('githubToken'); - - console.log("githubToken", githubToken) - const patterns = ['src/**/*.csproj', 'package.json'] const globber = await glob.create(patterns.join('\n')) const files = await globber.glob() @@ -79,7 +75,7 @@ async function commitChanges(file, filePath) { // Append a newline character to the end of the new content newContent += '\n'; - const githubToken = process.env.GITHUB_TOKEN; + const githubToken = core.getInput('githubToken'); // Get the repository owner and name const repoFullName = process.env.GITHUB_REPOSITORY;