Skip to content

Commit a06a5ba

Browse files
authored
Skip docs preview for dependabot PRs (#4554)
1 parent 869ccbe commit a06a5ba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/make.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ include(normpath(joinpath(Oscar.oscardir, "docs", "make_work.jl")))
44

55
BuildDoc.doit(Oscar; warnonly=false, local_build=false, doctest=false)
66

7+
should_push_preview = true
8+
if get(ENV, "GITHUB_ACTOR", "") == "dependabot[bot]"
9+
# skip preview for dependabot PRs as they fail due to lack of permissions
10+
should_push_preview = false
11+
end
12+
713
deploydocs(
814
repo = "github.com/oscar-system/Oscar.jl.git",
915
# deps = Deps.pip("pymdown-extensions", "pygments", "mkdocs", "python-markdown-math", "mkdocs-material", "mkdocs-cinder"),
1016
deps = nothing,
1117
target = "build",
12-
push_preview = true,
18+
push_preview = should_push_preview,
1319
# make = () -> run(`mkdocs build`),
1420
make = nothing,
1521
forcepush = true

0 commit comments

Comments
 (0)