This repository was archived by the owner on May 27, 2021. It is now read-only.
File tree 1 file changed +14
-6
lines changed
1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v2
12
+ - name : Get Julia compatibility
13
+ id : julia_compat
14
+ # NOTE: this requires a julia compat lower-bound with minor version!
15
+ run : |
16
+ version=$(grep '^julia = ' Project.toml | grep -o '".*"' | cut -d '"' -f2)
17
+ echo "::set-output name=version::$version"
12
18
- uses : julia-actions/setup-julia@latest
19
+ with :
20
+ version : ${{ steps.julia_compat.outputs.version }}
13
21
- name : Update packages
14
- id : update
22
+ id : pkg_update
15
23
run : |
16
- log=$(julia --project -e " using Pkg; Pkg.update()" )
24
+ log=$(julia --project -e ' using Pkg; Pkg.update()' )
17
25
log="${log//'%'/'%25'}"
18
26
log="${log//$'\n'/'%0A'}"
19
27
log="${log//$'\r'/'%0D'}"
20
28
echo "::set-output name=log::$log"
21
29
- name : Get status
22
- id : status
30
+ id : pkg_status
23
31
run : |
24
- log=$(julia --project -e " using Pkg; Pkg.status(diff=true)" )
32
+ log=$(julia --project -e ' using Pkg; VERSION >= v"1.3" ? Pkg.status(diff=true) : Pkg.status()' )
25
33
log="${log//'%'/'%25'}"
26
34
log="${log//$'\n'/'%0A'}"
27
35
log="${log//$'\r'/'%0D'}"
@@ -44,14 +52,14 @@ jobs:
44
52
This pull request updates the manifest for Julia v${{ steps.version.outputs.log }}:
45
53
46
54
```
47
- ${{ steps.status .outputs.log }}
55
+ ${{ steps.pkg_status .outputs.log }}
48
56
```
49
57
50
58
<details><summary>Click here for the full update log.</summary>
51
59
<p>
52
60
53
61
```
54
- ${{ steps.update .outputs.log }}
62
+ ${{ steps.pkg_update .outputs.log }}
55
63
```
56
64
57
65
</p>
You can’t perform that action at this time.
0 commit comments