From e20b84f8cc7c6e1b600b18e9b00b4451aa33aee8 Mon Sep 17 00:00:00 2001 From: Hasan Date: Tue, 18 Jul 2023 21:10:00 +0300 Subject: [PATCH] git push moved to gh-actions --- dist/index.js | 8 +------- index.js | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/dist/index.js b/dist/index.js index 63c4151..9b9c84c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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); diff --git a/index.js b/index.js index ad49d01..a18ceee 100644 --- a/index.js +++ b/index.js @@ -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);