Skip to content

Commit b69fa6a

Browse files
mortenpiKristofferC
authored andcommitted
doc: guard release branch regex with ^...$ (#46647)
(cherry picked from commit 174b893)
1 parent b1e7cac commit b69fa6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ function Documenter.deploy_folder(::BuildBotConfig; devurl, repo, branch, kwargs
347347
@info "Unable to deploy the documentation: DOCUMENTER_KEY missing"
348348
return Documenter.DeployDecision(; all_ok=false)
349349
end
350-
release = match(r"release-([0-9]+\.[0-9]+)", Base.GIT_VERSION_INFO.branch)
350+
release = match(r"^release-([0-9]+\.[0-9]+)$", Base.GIT_VERSION_INFO.branch)
351351
if Base.GIT_VERSION_INFO.tagged_commit
352352
# Strip extra pre-release info (1.5.0-rc2.0 -> 1.5.0-rc2)
353353
ver = VersionNumber(VERSION.major, VERSION.minor, VERSION.patch,

0 commit comments

Comments
 (0)