Skip to content

Commit

Permalink
removed logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Dec 20, 2024
1 parent 6862e8d commit f36b8d6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
7 changes: 0 additions & 7 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,13 @@ export async function run(): Promise<void> {
const tsDocStr: StepResponse | undefined = doTests
? await commandComment({ label: "TSDoc", command: "npm run docs" })
: undefined;
console.log("finished tsDoc");

const [checkModifiedFilesStr, modified]: [StepResponse, boolean] =
await checkModifiedFiles({
label: "Check for modified files",
command: "git status --porcelain",
// 'echo "modified=$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)" >> $GITHUB_ENV',
});
console.log("modified: ", modified);

// TODO: THIS DIDN't fail
const updateChangesStr: StepResponse | undefined = modified
? await updateChanges({
Expand All @@ -213,7 +212,6 @@ export async function run(): Promise<void> {
],
})
: undefined;
console.log("updateChangesStr: ", updateChangesStr);

// runCoverage
// const coverageStr: StepResponse | undefined = runCoverage
Expand Down
3 changes: 0 additions & 3 deletions src/scripts/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ export const checkModifiedFiles = async (
.then(async (str) => {
const response = { output: "", error: false };
if (str.trim() !== "") {
console.log("str 1: ", str);
filesModified = true;
return await buildComment(response, str, command.label);
} else {
console.log("str 2: ", str);
return await buildComment(response, str, command.label);
}
})
Expand All @@ -32,7 +30,6 @@ export const updateChanges = async (
let response: StepResponse = { output: "", error: false };

for (const cmd of command.commandList as string[]) {
console.log("cmd: ", cmd);
await runBashCommand(cmd).catch(async (error) => {
setFailed(`Failed to execute command "${cmd}": ${error as string}`);
response.error = true;
Expand Down

0 comments on commit f36b8d6

Please sign in to comment.