From c2c2ed18a8dd938561b226d7c98af907f4619196 Mon Sep 17 00:00:00 2001 From: Paul Swartz Date: Thu, 19 Sep 2024 11:49:53 -0400 Subject: [PATCH] chore: update GitHub Actions --- .github/workflows/elixir.yml | 10 +++++----- .github/workflows/report-coverage.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 6653f03..f99247f 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -11,13 +11,13 @@ jobs: - uses: actions/checkout@v4 # cache the ASDF directory, using the values from .tool-versions - name: ASDF cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.asdf key: ${{ runner.os }}-asdf-v2-${{ hashFiles('.tool-versions') }} id: asdf-cache # only run `asdf install` if we didn't hit the cache - - uses: asdf-vm/actions/install@v1 + - uses: asdf-vm/actions/install@v2 if: steps.asdf-cache.outputs.cache-hit != 'true' ci: @@ -27,7 +27,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: ASDF cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.asdf key: ${{ runner.os }}-asdf-v2-${{ hashFiles('.tool-versions') }} @@ -35,7 +35,7 @@ jobs: - uses: mbta/actions/reshim-asdf@v2 - name: Restore dependencies cache id: deps-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: deps key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} @@ -59,7 +59,7 @@ jobs: echo "${{ github.event.pull_request.head.sha }}" > cover/PR_SHA if: github.event.pull_request - name: Upload coverage artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: elixir-lcov path: cover/ diff --git a/.github/workflows/report-coverage.yml b/.github/workflows/report-coverage.yml index 37981f1..9efdc53 100644 --- a/.github/workflows/report-coverage.yml +++ b/.github/workflows/report-coverage.yml @@ -43,7 +43,7 @@ jobs: unzip elixir-lcov.zip echo "PR_SHA=$(cat PR_SHA)" >> $GITHUB_ENV echo "PR_NUMBER=$(cat PR_NUMBER)" >> $GITHUB_ENV - - uses: actions/checkout@v2 # UNTRUSTED CODE - do not run scripts from it + - uses: actions/checkout@v4 # UNTRUSTED CODE - do not run scripts from it with: ref: ${{ env.PR_SHA }} - name: Upload coverage artifact and post comment