online-judge-tools / verification-helper

a testing framework for snippet libraries used in competitive programming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to update GitHub Pages when the default branch is not `master`

kmyk opened this issue · comments

Description

oj-verify updates the gh-pages branch when it's called on the default branch, but the name of default branch is hard-coded as master. This doesn't work for users who use main. This is a new bug introduced by the GitHub's breaking change.

if os.environ['GITHUB_REF'] == 'refs/heads/master':

Error log

https://github.com/maguroplusia/Library/runs/1633606290

Other notes

  • Will you try to create a pull request?
    • yes. This has a high priority.