Skip to content

Commit

Permalink
pull the latest code before making new changes, fixes: #36
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamkrishnar committed Oct 18, 2020
1 parent 3067028 commit c513cde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blog-post-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ Promise.allSettled(promiseArray).then((results) => {
postsArray = postsArray.slice(0, TOTAL_POST_COUNT);
if (postsArray.length > 0) {
try {
if (!process.env.TEST_MODE) {
exec('git', ['config','pull.rebase', ' true']);
exec('git',['pull']); // Pulling the latest changes from upstream
}
const readmeData = fs.readFileSync(README_FILE_PATH, 'utf8');
const template = core.getInput('template');
const randEmojiArr = getParameterisedTemplate(template, 'randomEmoji');
Expand Down

0 comments on commit c513cde

Please sign in to comment.