File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CompatHelper
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 0 0 * * *'
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ CompatHelper :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Get Julia compatibility
14
+ id : julia_compat
15
+ # NOTE: this requires a Julia compat lower-bound with minor version!
16
+ run : |
17
+ version=$(grep '^julia = ' Project.toml | grep -o '".*"' | cut -d '"' -f2)
18
+ echo "::set-output name=version::$version"
19
+ - uses : julia-actions/setup-julia@v1
20
+ with :
21
+ version : ${{ steps.julia_compat.outputs.version }}
22
+ - name : Install CompatHelper
23
+ run : |
24
+ import Pkg
25
+ name = "CompatHelper"
26
+ version = "2"
27
+ Pkg.add(; name, version)
28
+ shell : julia --color=yes {0}
29
+ - name : Run CompatHelper
30
+ run : |
31
+ using CompatHelper
32
+ CompatHelper.main()
33
+ shell : julia --color=yes {0}
34
+ env :
35
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments