Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AkhileshNS committed Jan 18, 2020
1 parent f65ebef commit 1884058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ heroku.email = core.getInput("heroku_email");
heroku.app_name = core.getInput("heroku_app_name");
heroku.buildpack = core.getInput("buildpack");
heroku.branch = core.getInput("branch");
heroku.dontuseforce = core.getInput("dontuseforce");

try {
execSync("git fetch --prune --unshallow");
Expand All @@ -44,7 +45,7 @@ try {
console.log(
"Unable to push branch because the branch is behind the deployed branch. Using --force to deploy branch. (If you want to avoid this, set dontuseforce to 1 in with: of .github/workflows/action.yml"
);
if (!core.getInput("dontuseforce")) {
if (!heroku.dontuseforce) {
execSync(`git push heroku ${heroku.branch}:master --force`);
}
}
Expand Down

0 comments on commit 1884058

Please sign in to comment.