Skip to content

Commit

Permalink
git push moved to gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aldoyh committed Jul 18, 2023
1 parent 14d1bbd commit e20b84f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6257,16 +6257,10 @@ const buildReadme = (prevReadmeContent, newReadmeContent) => {

const commitReadme = async () => {
// Getting config
const committerUsername = "DoyDevLabs";
const committerEmail = "doydevlabs@gmail.com";
const commitMessage = "Todoist updated.";
// Doing commit and push
await exec("git", ["config", "--global", "user.email", committerEmail]);
await exec("git", ["config", "--global", "user.name", committerUsername]);
await exec("git", ["add", README_FILE_PATH]);
await exec("git", ["commit", "-m", commitMessage]);
// await exec('git', ['fetch']);
await exec("git", ["push"]);
// await exec("git", ["push"]);
core.info("Readme updated successfully.");
// Making job fail if one of the source fails
process.exit(jobFailFlag ? 1 : 0);
Expand Down
8 changes: 1 addition & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,10 @@ const buildReadme = (prevReadmeContent, newReadmeContent) => {

const commitReadme = async () => {
// Getting config
const committerUsername = "DoyDevLabs";
const committerEmail = "doydevlabs@gmail.com";
const commitMessage = "Todoist updated.";
// Doing commit and push
await exec("git", ["config", "--global", "user.email", committerEmail]);
await exec("git", ["config", "--global", "user.name", committerUsername]);
await exec("git", ["add", README_FILE_PATH]);
await exec("git", ["commit", "-m", commitMessage]);
// await exec('git', ['fetch']);
await exec("git", ["push"]);
// await exec("git", ["push"]);
core.info("Readme updated successfully.");
// Making job fail if one of the source fails
process.exit(jobFailFlag ? 1 : 0);
Expand Down

0 comments on commit e20b84f

Please sign in to comment.