Skip to content

Commit 7cab6c3

Browse files
authored
Merge branch 'main' into icweaver-patch-1
2 parents 4489b52 + 5661062 commit 7cab6c3

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
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 }}

.github/workflows/DocPreviewCleanup.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
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

@@ -21,7 +21,7 @@ jobs:
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)
@@ -39,8 +39,8 @@ jobs:
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]"

.github/workflows/Documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
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"

0 commit comments

Comments
 (0)