Skip to content

Commit

Permalink
Skip docs preview for dependabot PRs (#4554)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Feb 7, 2025
1 parent 869ccbe commit a06a5ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ include(normpath(joinpath(Oscar.oscardir, "docs", "make_work.jl")))

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

should_push_preview = true
if get(ENV, "GITHUB_ACTOR", "") == "dependabot[bot]"
# skip preview for dependabot PRs as they fail due to lack of permissions
should_push_preview = false
end

deploydocs(
repo = "github.com/oscar-system/Oscar.jl.git",
# deps = Deps.pip("pymdown-extensions", "pygments", "mkdocs", "python-markdown-math", "mkdocs-material", "mkdocs-cinder"),
deps = nothing,
target = "build",
push_preview = true,
push_preview = should_push_preview,
# make = () -> run(`mkdocs build`),
make = nothing,
forcepush = true
Expand Down

0 comments on commit a06a5ba

Please sign in to comment.