Skip to content

Commit 93a5649

Browse files
authored
Generalize heroku push to work for any branch (#9)
* generalize heroku push * add quiet
1 parent 43874a3 commit 93a5649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bazoku.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _bazoku_impl(ctx):
6868
git add . # TODO: try and restrict this a little. Maybe it's no possible due to deps etc..
6969
git commit -m --allow-empty &> /dev/null
7070
echo $spacer
71-
git push heroku master -f --quiet
71+
git push heroku $(git rev-parse --abbrev-ref HEAD):main -f --quiet
7272
cd $runfile_path
7373
rm -rf /tmp/bazoku
7474
""".format(heroku_cli.short_path, ctx.attr.heroku_app_name, binary.short_path)

0 commit comments

Comments
 (0)