Skip to content

Commit 02f1f01

Browse files
committed
Create CompatHelper.yml
1 parent f499997 commit 02f1f01

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CompatHelper
2+
on:
3+
schedule:
4+
- cron: '0 0 */15 * *'
5+
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
jobs:
10+
CompatHelper:
11+
runs-on: ubuntu-latest
12+
steps:
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@v2
19+
with:
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Add the General registry via Git"
24+
shell: julia --color=yes {0}
25+
run: |
26+
import Pkg
27+
ENV["JULIA_PKG_SERVER"] = ""
28+
Pkg.Registry.add("General")
29+
- name: "Install CompatHelper"
30+
shell: julia --color=yes {0}
31+
run: |
32+
import Pkg
33+
name = "CompatHelper"
34+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
35+
version = "3"
36+
Pkg.add(; name, uuid, version)
37+
- name: "Run CompatHelper"
38+
shell: julia --color=yes {0}
39+
run: import CompatHelper; CompatHelper.main()
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}

0 commit comments

Comments
 (0)