From 03ffe8a58c3355aa4814f05a0220c3ed672825f4 Mon Sep 17 00:00:00 2001 From: Sakamoto Noriaki Date: Sat, 14 Dec 2024 21:45:21 +0900 Subject: [PATCH 1/2] Update ocaml-install action to v3 --- .github/workflows/ci.yaml | 3 +-- .github/workflows/update-develop.yaml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6080c79d..4acf6c2c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -65,13 +65,12 @@ jobs: echo "::set-output name=opam-repo-default::$(echo "$DEFAULT_OPAM_REPO")" - name: Setup OCaml ${{ matrix.ocaml-version }} - uses: ocaml/setup-ocaml@v2 + uses: ocaml/setup-ocaml@v3 with: ocaml-compiler: ${{ matrix.ocaml-version }} dune-cache: true cache-prefix: "snapshot-${{ matrix.snapshot }}" - opam-depext: false opam-pin: false opam-repositories: | diff --git a/.github/workflows/update-develop.yaml b/.github/workflows/update-develop.yaml index 9d9005cd..85691252 100644 --- a/.github/workflows/update-develop.yaml +++ b/.github/workflows/update-develop.yaml @@ -22,12 +22,11 @@ jobs: private_key: ${{ secrets.SG_REPO_GH_APP_PRIV_KEY }} - name: Setup OCaml - uses: ocaml/setup-ocaml@v2 + uses: ocaml/setup-ocaml@v3 with: ocaml-compiler: 4.12 dune-cache: true - opam-depext: false opam-pin: false - name: Install OCaml dependencies From b99766a68505c6190f37ee5e6915d832d031711e Mon Sep 17 00:00:00 2001 From: Sakamoto Noriaki Date: Sun, 15 Dec 2024 00:23:10 +0900 Subject: [PATCH 2/2] Update artifact action version --- .github/workflows/ci-comment.yaml | 4 ++-- .github/workflows/ci.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-comment.yaml b/.github/workflows/ci-comment.yaml index 9aaf698d..1c21edd5 100644 --- a/.github/workflows/ci-comment.yaml +++ b/.github/workflows/ci-comment.yaml @@ -24,7 +24,7 @@ jobs: submodules: true - name: 'Download artifact' - uses: actions/github-script@v3.1.0 + uses: actions/github-script@v7 with: script: | const artifacts = await github.actions.listWorkflowRunArtifacts({ @@ -59,7 +59,7 @@ jobs: done - name: Update the PR body - uses: actions/github-script@v2 + uses: actions/github-script@v7 env: SNAPSHOT_UPDATABLE: ${{ steps.test-update-snapshot.outputs.result }} PACKAGES_TO_UPDATE: ${{ steps.test-update-snapshot.outputs.packages }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4acf6c2c..e7af1a54 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -178,7 +178,7 @@ jobs: exit 1 fi - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: success() || failure() with: name: "pr-snapshot-${{ matrix.snapshot }}-${{ matrix.ocaml-version }}-${{ matrix.os }}"