I noticed that in the call here, DEFAULT_BRANCH wasn't set, which caused all the arguments to that call to get shifted over by one. It wasn't getting set because there was an error being reported in the default-branch.sh script, because the repo has no remotes when the script is run in a GitHub Action.
This PR changes the script to call the GitHub API to get the default branch.
I noticed that in the call here, DEFAULT_BRANCH wasn't set, which caused all the arguments to that call to get shifted over by one. It wasn't getting set because there was an error being reported in the default-branch.sh script, because the repo has no remotes when the script is run in a GitHub Action.
This PR changes the script to call the GitHub API to get the default branch.