yurikoval / middleman-gh-pages-action

A GitHub Action to build and deploy Middleman to Github Pages
https://github.com/marketplace/actions/middleman-github-pages-action
16 stars 16 forks source link

Switch master to main? #3

Closed alex-hedley closed 1 year ago

alex-hedley commented 1 year ago

switch master to main?

echo "Pushing... to $remote_repo master:$remote_branch"
git push --force $remote_repo master:$remote_branch > /dev/null 2>&1

https://github.com/yurikoval/middleman-gh-pages-action/blob/fc1652b308bdb97b8412d0dd02b67b7c4def0884/entrypoint.sh#L26-L27

AlexHedley commented 1 year ago

github.event.repository.default_branch

$default-branch

yurikoval commented 1 year ago

The branch name is irrelevant here since it's built inside the Docker container and not in the git that is cloned from Github.

I've updated the script to get the branch name in case it's defaulting to main. Please provide more details if you're having issues with the build.