Skip to content

Commit e5658e5

Browse files
committed
Fix CompatHelper.
[skip ci]
1 parent dd3035a commit e5658e5

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,24 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- name: Get Julia compatibility
1414
id: julia_compat
15-
# NOTE: this requires a julia compat lower-bound with minor version!
15+
# NOTE: this requires a Julia compat lower-bound with minor version!
1616
run : |
1717
version=$(grep '^julia = ' Project.toml | grep -o '".*"' | cut -d '"' -f2)
1818
echo "::set-output name=version::$version"
1919
- uses: julia-actions/setup-julia@v1
2020
with:
21-
# version: ${{ steps.julia_compat.outputs.version }}
22-
version: "1.6"
23-
- name: Pkg.add("CompatHelper")
24-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
25-
- name: CompatHelper.main()
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}
2634
env:
2735
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
run: julia -e 'using CompatHelper; CompatHelper.main( (; registries) -> CompatHelper._update_manifests(String[pwd()]; registries = registries, delete_old_manifest = false) )'

.github/workflows/ManifestUpdater.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ jobs:
1818
echo "::set-output name=version::$version"
1919
- uses: julia-actions/setup-julia@v1
2020
with:
21-
# version: ${{ steps.julia_compat.outputs.version }}
22-
version: "1.6"
21+
version: ${{ steps.julia_compat.outputs.version }}
2322
- name: Update packages
2423
id: pkg_update
2524
run: |

0 commit comments

Comments
 (0)