Skip to content

Commit

Permalink
Build Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
offensive-vk committed Dec 8, 2024
1 parent 9a91030 commit 02740e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32753,6 +32753,7 @@ var TARGET_FILE = core.getInput("target-file");
var EMPTY_COMMIT_MSG = core.getInput("empty-commit-msg");
var GITHUB_TOKEN = core.getInput("token") || process.env.GITHUB_TOKEN;
var DEBUG = core.getInput("debug") === "true";
core.debug(`Using token: ${GITHUB_TOKEN}`);
var exec = (cmd, args = []) => new Promise((resolve, reject) => {
const app = spawn(cmd, args);
let stdout = "";
Expand Down Expand Up @@ -32827,7 +32828,10 @@ Toolkit.run(
}
const newContent = content.map((line, idx) => `${idx + 1}. ${line}`).join("\n");
readmeContent.splice(startIdx + 1, endIdx - startIdx - 1, newContent);
fs.writeFileSync(`./${TARGET_FILE}`, readmeContent.join("\n"));
fs.writeFileSync(`${TARGET_FILE}`, readmeContent.join("\n"));
console.log(`:: Actual Output ::
`);
console.dir(readmeContent);
try {
await commitFile();
} catch (err) {
Expand All @@ -32836,8 +32840,8 @@ Toolkit.run(
tools.exit.success("Readme or Markdown Changes Committed.");
},
{
event: ["schedule", "workflow_dispatch"],
secrets: [GITHUB_TOKEN]
event: [],
secrets: []
}
);
var capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
Expand Down
Loading

0 comments on commit 02740e1

Please sign in to comment.