There are a few common branch names:
Instead of using master as the default branch name, why don't we detect what the default branch is in the GitHub repo this action is running in?
There might even be an API for detecting the exact branch used for GitHub Pages in the GitHub repo the action is running in.