vitalyliber / dokku-github-action

Deploy applications to Dokku
https://vitalyliber.com/courses/deploj-prilozhenij-s-dokku
MIT License
78 stars 32 forks source link

Deploy finding wrong Default Branch #27

Closed kusky closed 1 year ago

kusky commented 1 year ago

Hi, since the change about the Dubious Ownership error, we have faced an issue where our deploy process is actually not working. The issue is about the default branch line not working as it used to, even when using the v7.1. (I think it this one DEFAULT_BRANCH="$(git remote show origin | awk '/HEAD branch/ {print $NF}')"

This is the error that we are getting:

image

If I execute that line in my own machine, it does work as usual, getting main as the head branch. But when it gets triggered in Dokku on our cloud machine, it doesn't. This was working without issues until maybe 2-3 weeks ago, so we are a bit lost on what the issue could be.

Thanks!

vitalyliber commented 1 year ago

Hey @kusky. Please create PR If you know how to solve your issue 🙏