Skip to content

Commit 246e8f0

Browse files
authored
Update CompatHelper.yml
1 parent 99faa56 commit 246e8f0

File tree

1 file changed

+31
-16
lines changed

1 file changed

+31
-16
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,39 @@
11
name: CompatHelper
2-
32
on:
43
schedule:
5-
- cron: '00 00 * * *'
6-
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
79
jobs:
8-
build:
9-
runs-on: ${{ matrix.os }}
10-
strategy:
11-
matrix:
12-
julia-version: [1.2.0]
13-
julia-arch: [x86]
14-
os: [ubuntu-latest]
10+
CompatHelper:
11+
runs-on: ubuntu-latest
1512
steps:
16-
- uses: julia-actions/setup-julia@latest
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v1
1719
with:
18-
version: ${{ matrix.julia-version }}
19-
- name: Pkg.add("CompatHelper")
20-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
21-
- name: CompatHelper.main()
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Install CompatHelper"
24+
run: |
25+
import Pkg
26+
name = "CompatHelper"
27+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
28+
version = "3"
29+
Pkg.add(; name, uuid, version)
30+
shell: julia --color=yes {0}
31+
- name: "Run CompatHelper"
32+
run: |
33+
import CompatHelper
34+
CompatHelper.main()
35+
shell: julia --color=yes {0}
2236
env:
2337
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
run: julia -e 'using CompatHelper; CompatHelper.main()'
38+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
39+
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}

0 commit comments

Comments
 (0)