heroku-deploy icon indicating copy to clipboard operation
heroku-deploy copied to clipboard

#119 Add "useforce" argument to enforce usage of --force

Open Hacklone opened this issue 3 years ago • 6 comments

Add useforce argument to enforce usage of --force when switching branches to avoid unnecessary double deploy

Hacklone avatar Nov 04 '22 12:11 Hacklone

@AkhileshNS: Can you please check this PR, would tremendously help our GH actions :) Thanks

Hacklone avatar Nov 11 '22 10:11 Hacklone

Anyone?

Hacklone avatar Nov 29 '22 16:11 Hacklone

@AkhileshNS: Is this project still live? There are many open PRs with valuable additions :)

Hacklone avatar Dec 20 '22 07:12 Hacklone

Hey, @AkhileshNS. Can you check this PR? It would be nice to have it available.

danilogco avatar Jan 11 '23 04:01 danilogco

Would be very useful. My workflow generates some extra files before deploying to Heroku, so it always fails the first attempt.

From https://github.com/myapp/backend
 * [new branch]      preprod    -> origin/preprod
 * [new branch]      prod       -> origin/prod
Created and wrote to ~/.netrc
Successfully logged into heroku
 ›   Warning: Our terms of service have changed: 
Added git remote heroku
 ›   https://dashboard.heroku.com/terms-of-service
To https://git.heroku.com/myapp-test.git
 ! [rejected]        HEAD -> main (fetch first)
error: failed to push some refs to 'https://git.heroku.com/myapp-test.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Gieted avatar May 17 '23 19:05 Gieted

Sent an email to @AkhileshNS but sadly no response. :( Hope he's alright

Hacklone avatar Nov 22 '23 14:11 Hacklone