Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
removing console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn226 committed Dec 20, 2023
1 parent a6cd779 commit 7ab1339
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/notify-classroom.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@ exports.NotifyClassroom = async function NotifyClassroom(runnerResults) {
},
{ totalPoints: 0, maxPoints: 0 }
);
console.log(`max score: ${maxPoints}`);
if (!maxPoints) return;

// Our action will need to API access the repository so we require a token
// This will need to be set in the calling workflow, otherwise we'll exit
const token = process.env.GITHUB_TOKEN || core.getInput("token");
console.log(`Token: ${token}`);
if (!token || token === "") return;

// Create the octokit client
const octokit = github.getOctokit(token);
console.log(`Octokit: ${octokit}`);
if (!octokit) return;

// The environment contains a variable for current repository. The repository
Expand All @@ -41,7 +38,6 @@ exports.NotifyClassroom = async function NotifyClassroom(runnerResults) {

// We need the workflow run id
const runId = parseInt(process.env.GITHUB_RUN_ID || "");
console.log(`Run ID: ${runId}`);
if (Number.isNaN(runId)) return;

// Fetch the workflow run
Expand Down

0 comments on commit 7ab1339

Please sign in to comment.