Skip to content

Commit 1d20c68

Browse files
authored
Merge pull request #2 from HolyLab/massinstallaction/set-up-CompatHelper
MassInstallAction: Install the CompatHelper workflow on this repository
2 parents dd02589 + 68a4558 commit 1d20c68

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,33 @@
11
name: CompatHelper
22
on:
33
schedule:
4-
- cron: 0 0 * * *
4+
- cron: '0 0 * * 0'
55
workflow_dispatch:
66
jobs:
77
CompatHelper:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Pkg.add("CompatHelper")
11-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12-
- name: CompatHelper.main()
10+
- name: "Add the General registry via Git"
11+
run: |
12+
using Pkg
13+
ENV["JULIA_PKG_SERVER"] = ""
14+
Pkg.Registry.add("General")
15+
Pkg.Registry.add(RegistrySpec(url="https://github.com/HolyLab/HolyLabRegistry.git"))
16+
shell: julia --color=yes {0}
17+
- name: "Install CompatHelper"
18+
run: |
19+
import Pkg
20+
name = "CompatHelper"
21+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
22+
version = "3"
23+
Pkg.add(; name, uuid, version)
24+
shell: julia --color=yes {0}
25+
- name: "Run CompatHelper"
26+
run: |
27+
import CompatHelper
28+
CompatHelper.main()
29+
shell: julia --color=yes {0}
1330
env:
1431
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1532
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16-
run: julia -e 'using CompatHelper; CompatHelper.main()'
33+
# COMPATHELPER_PRIV: \${{ secrets.COMPATHELPER_PRIV }}

0 commit comments

Comments
 (0)