Skip to content

Commit

Permalink
chore: check changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol-Baranwal committed Feb 14, 2024
1 parent 0f42776 commit 1086f81
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/utils/createMarkdownFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@ created_at: "${article.published_timestamp}"
fs.writeFileSync(filePath, markdownContent)

// Commit and push the new markdown file to the specified branch
// await gitAdd(filePath)
// await gitCommit(commitMessage, gitConfig)
// await gitPush(branch, gitConfig)
await gitAdd(filePath)

console.log("Attempting to add files to git...")

await gitCommit(commitMessage, gitConfig)

console.log("Files added to git.")
await gitPush(branch, gitConfig)

core.notice(`Markdown file created and committed: ${filePath}`)
} else {
Expand Down

0 comments on commit 1086f81

Please sign in to comment.