Skip to content

Commit 435dd70

Browse files
committed
Replace Travis env. variables with GitHub ones
1 parent eb32335 commit 435dd70

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pdf/make.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ end
4040
function makedocs(julia_exec)
4141
@sync begin
4242
builder = @async begin
43-
withenv("TRAVIS_REPO_SLUG" => nothing, # workaround Documenter bugs and julia#26314
44-
"DOCUMENTER_KEY" => nothing, # skips deploydocs with the BuildBotConfig (see doc/make.jl)
43+
withenv(DOCUMENTER_KEY" => nothing, # skips deploydocs with the BuildBotConfig (see doc/make.jl)
4544
"BUILDROOT" => nothing) do
4645
run(`make -C $(JULIA_SOURCE)/doc pdf texplatform=docker JULIA_EXECUTABLE=$(julia_exec)`)
4746
end
@@ -134,7 +133,7 @@ end
134133
135134
# similar to Documenter.deploydocs
136135
function commit()
137-
if get(ENV, "TRAVIS_PULL_REQUEST", "true") != "false"
136+
if get(ENV, "GITHUB_EVENT_NAME", nothing) == "pull_request"
138137
@info "skipping commit from pull requests."
139138
return
140139
end

0 commit comments

Comments
 (0)