After checking out Heroku documentation, and some old GitHub action, I discovered that it's not necessary to set the email address for Heroku CLI as long as you set the HEROKU_API_KEY environment variable.
The first link also tells that .netrc is useful when using Heroku's HTTP Git service, which your script doesn't use (because it just pushes to container registry), so it's safe to also remove that step from the build (maybe while avoiding side effects).
I have tested this on GitHub Actions environment, and it works, as you can see:
(the commit hashes match with the one from this pull request)
After checking out Heroku documentation, and some old GitHub action, I discovered that it's not necessary to set the email address for Heroku CLI as long as you set the
HEROKU_API_KEY
environment variable.The first link also tells that
.netrc
is useful when using Heroku's HTTP Git service, which your script doesn't use (because it just pushes to container registry), so it's safe to also remove that step from the build (maybe while avoiding side effects).I have tested this on GitHub Actions environment, and it works, as you can see: (the commit hashes match with the one from this pull request)
https://github.com/bryanjhv/bitwarden_rs_heroku/actions/runs/587779699