Skip to content

Commit

Permalink
fix isGithubMyMasterBranch() to also work locally
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Oct 31, 2024
1 parent 90ce255 commit be1a0b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions do/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ func verifyOnReleaseBranchMust() {
func isGithubMyMasterBranch() bool {
// https://help.github.com/en/actions/automating-your-workflow-with-github-actions/using-environment-variables
repo := os.Getenv("GITHUB_REPOSITORY")
if repo == "" {
branch := getCurrentBranchMust(".")
return branch == "master"
}
if repo != "sumatrapdfreader/sumatrapdf" {
return false
}
Expand Down

0 comments on commit be1a0b9

Please sign in to comment.