File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 arch :
2222 - x64
2323 steps :
24- - uses : actions/checkout@v4
24+ - uses : actions/checkout@v5
2525 - uses : julia-actions/setup-julia@v2
2626 with :
2727 version : ${{ matrix.version }}
Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout gh-pages branch
14- uses : actions/checkout@v4
14+ uses : actions/checkout@v5
1515 with :
1616 ref : gh-pages
1717
2121 - uses : julia-actions/cache@v2
2222
2323 - name : Check for stale PR previews
24- shell : julia {0}
24+ shell : julia --color=yes {0}
2525 run : |
2626 using Pkg
2727 Pkg.activate(temp = true)
3939 end
4040
4141 function all_prs()
42- url = "https://api.github.com/repos/$repo/pulls?per_page=100;page=$(page) "
43- query_prs(page) = JSON3.read(HTTP.get(url).body)
42+ url = "https://api.github.com/repos/$repo/pulls?per_page=100;page="
43+ query_prs(page) = JSON3.read(HTTP.get(url * string(page) ).body)
4444 prs = []
4545 page = 1
4646 while true
@@ -62,15 +62,18 @@ jobs:
6262
6363 if isempty(stale_previews)
6464 @info "No stale previews"
65- exit(1)
65+ println(ENV["GITHUB_ENV"], "FOUND_STALE_PREVIEWS=false")
66+ exit()
6667 end
68+ println(ENV["GITHUB_ENV"], "FOUND_STALE_PREVIEWS=true")
6769
6870 for pr in stale_previews
6971 path = joinpath("previews", "PR$pr")
7072 @info "Removing $path"
7173 run(`git rm -rf $path`)
7274 end
7375 - name : Push changes
76+ if : ${{ env.FOUND_STALE_PREVIEWS == 'true' }}
7477 run : |
7578 git config user.name "Documenter.jl"
7679 git config user.email "[email protected] "
Original file line number Diff line number Diff line change 1010 name : MultiDocumentation
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v4
13+ - uses : actions/checkout@v5
1414 - uses : julia-actions/setup-julia@v2
1515 with :
1616 version : " 1"
You can’t perform that action at this time.
0 commit comments