From 68a4558bd3c71f44e891f789f4ebbf3edf6540d0 Mon Sep 17 00:00:00 2001 From: Dae Woo Kim Date: Thu, 9 Jan 2025 10:01:36 -0600 Subject: [PATCH] Schedule CompatHelper weekly --- .github/workflows/CompatHelper.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index cba9134..d561424 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -1,16 +1,33 @@ name: CompatHelper on: schedule: - - cron: 0 0 * * * + - cron: '0 0 * * 0' workflow_dispatch: jobs: CompatHelper: runs-on: ubuntu-latest steps: - - name: Pkg.add("CompatHelper") - run: julia -e 'using Pkg; Pkg.add("CompatHelper")' - - name: CompatHelper.main() + - name: "Add the General registry via Git" + run: | + using Pkg + ENV["JULIA_PKG_SERVER"] = "" + Pkg.Registry.add("General") + Pkg.Registry.add(RegistrySpec(url="https://github.com/HolyLab/HolyLabRegistry.git")) + shell: julia --color=yes {0} + - name: "Install CompatHelper" + run: | + import Pkg + name = "CompatHelper" + uuid = "aa819f21-2bde-4658-8897-bab36330d9b7" + version = "3" + Pkg.add(; name, uuid, version) + shell: julia --color=yes {0} + - name: "Run CompatHelper" + run: | + import CompatHelper + CompatHelper.main() + shell: julia --color=yes {0} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} - run: julia -e 'using CompatHelper; CompatHelper.main()' + # COMPATHELPER_PRIV: \${{ secrets.COMPATHELPER_PRIV }}