Skip to content

Commit

Permalink
doc: guard release branch regex with ^...$ (#46647)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi authored Sep 16, 2022
1 parent 0fabe54 commit 174b893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ function Documenter.deploy_folder(::BuildBotConfig; devurl, repo, branch, kwargs
@info "Unable to deploy the documentation: DOCUMENTER_KEY missing"
return Documenter.DeployDecision(; all_ok=false)
end
release = match(r"release-([0-9]+\.[0-9]+)", Base.GIT_VERSION_INFO.branch)
release = match(r"^release-([0-9]+\.[0-9]+)$", Base.GIT_VERSION_INFO.branch)
if Base.GIT_VERSION_INFO.tagged_commit
# Strip extra pre-release info (1.5.0-rc2.0 -> 1.5.0-rc2)
ver = VersionNumber(VERSION.major, VERSION.minor, VERSION.patch,
Expand Down

0 comments on commit 174b893

Please sign in to comment.