Azure / acr-build

Github action to build containers with Azure Container Registry
MIT License
19 stars 25 forks source link

Fails in repos without a master branch #2

Open echennells opened 2 years ago

echennells commented 2 years ago

Newer github repos default branch is renamed main. I tried putting in a BRANCH variable but it didn't seem to pick it up.

johnazariah commented 2 years ago

I ran into this issue as well

I just added

          branch: main

into the with: section and it worked after

ams0 commented 2 years ago

Indeed, we choose master as default. As everyone, I'm aware of the switch to main default branch name for new repos, but I wonder how many repos are out there still using master. It's a though decision to choose a default, and this is no different.