From 4f5f143180c2bbe18f1758e4c9b14e766a733bd3 Mon Sep 17 00:00:00 2001 From: Carlos Paniagua Date: Mon, 8 Apr 2024 17:22:46 +0000 Subject: [PATCH 1/3] chore: add CompatHelper --- .github/workflows/CompatHelper.yml | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/CompatHelper.yml diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 00000000..f95e7a8d --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,45 @@ +name: CompatHelper +on: + schedule: + # Check for dep updates on run at midnight on the first day of every month + - cron: 0 0 1 * * + workflow_dispatch: +permissions: + contents: write + pull-requests: write +jobs: + CompatHelper: + runs-on: ubuntu-latest + steps: + - name: Check if Julia is already available in the PATH + id: julia_in_path + run: which julia + continue-on-error: true + - name: Install Julia, but only if it is not already available in the PATH + uses: julia-actions/setup-julia@v1 + with: + version: '1' + arch: ${{ runner.arch }} + if: steps.julia_in_path.outcome != 'success' + - name: "Add the General registry via Git" + run: | + import Pkg + ENV["JULIA_PKG_SERVER"] = "" + Pkg.Registry.add("General") + 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 }} From f43b9beb1d6fc4c89a6804a01d16876c14cea308 Mon Sep 17 00:00:00 2001 From: Carlos Paniagua Date: Mon, 8 Apr 2024 13:26:05 -0400 Subject: [PATCH 2/3] Update CompatHelper.yml --- .github/workflows/CompatHelper.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index f95e7a8d..c8b10ca8 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -1,7 +1,7 @@ name: CompatHelper on: schedule: - # Check for dep updates on run at midnight on the first day of every month + # Check for dep updates; run at midnight on the first day of every month - cron: 0 0 1 * * workflow_dispatch: permissions: From 1173bebc054fc7a30a398bc00c46cc68d5a84f33 Mon Sep 17 00:00:00 2001 From: Carlos Paniagua Date: Mon, 8 Apr 2024 13:55:29 -0400 Subject: [PATCH 3/3] Update CompatHelper.yml use setup-julia@v2 --- .github/workflows/CompatHelper.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index c8b10ca8..ce47a567 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -16,7 +16,7 @@ jobs: run: which julia continue-on-error: true - name: Install Julia, but only if it is not already available in the PATH - uses: julia-actions/setup-julia@v1 + uses: julia-actions/setup-julia@v2 with: version: '1' arch: ${{ runner.arch }}