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'}"
@@ -37,21 +45,21 @@ jobs:
3745 token : ${{ secrets.GITHUB_TOKEN }}
3846 commit-message : |
3947 Update dependencies.
40- ${{ steps.status .outputs.log }}
48+ ${{ steps.pkg_status .outputs.log }}
4149 title : Update manifest
4250 reviewers : maleadt
4351 body : |
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