Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 17dfd92

Browse files
committed
Run the manifest updater on the lowest supported version. [ci skip]
1 parent 50caca3 commit 17dfd92

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/update_manifest.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,27 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- 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"
1218
- uses: julia-actions/setup-julia@latest
19+
with:
20+
version: ${{ steps.julia_compat.outputs.version }}
1321
- name: Update packages
14-
id: update
22+
id: pkg_update
1523
run: |
16-
log=$(julia --project -e "using Pkg; Pkg.update()")
24+
log=$(julia --project -e 'using Pkg; Pkg.update()')
1725
log="${log//'%'/'%25'}"
1826
log="${log//$'\n'/'%0A'}"
1927
log="${log//$'\r'/'%0D'}"
2028
echo "::set-output name=log::$log"
2129
- name: Get status
22-
id: status
30+
id: pkg_status
2331
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()')
2533
log="${log//'%'/'%25'}"
2634
log="${log//$'\n'/'%0A'}"
2735
log="${log//$'\r'/'%0D'}"
@@ -44,14 +52,14 @@ jobs:
4452
This pull request updates the manifest for Julia v${{ steps.version.outputs.log }}:
4553
4654
```
47-
${{ steps.status.outputs.log }}
55+
${{ steps.pkg_status.outputs.log }}
4856
```
4957
5058
<details><summary>Click here for the full update log.</summary>
5159
<p>
5260
5361
```
54-
${{ steps.update.outputs.log }}
62+
${{ steps.pkg_update.outputs.log }}
5563
```
5664
5765
</p>

0 commit comments

Comments
 (0)