From 59442d314d56821417fa89a797fb0597eb455818 Mon Sep 17 00:00:00 2001 From: Christian Wellenbrock Date: Fri, 13 Dec 2024 13:50:24 +0100 Subject: [PATCH] Use actions/cache@v3 in github workflows --- .github/workflows/bench.yml | 6 +++--- .github/workflows/gorelease.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 625f0f8..48aa0d0 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -48,7 +48,7 @@ jobs: ref: ${{ (github.event.inputs.new != '') && github.event.inputs.new || github.event.ref }} - name: Go cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: # In order: # * Module download cache @@ -61,7 +61,7 @@ jobs: ${{ runner.os }}-go-cache - name: Restore benchstat - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/go/bin/benchstat key: ${{ runner.os }}-benchstat-legacy @@ -69,7 +69,7 @@ jobs: - name: Restore base benchmark result id: base-benchmark if: env.CACHE_BENCHMARK == 'on' - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | bench-master.txt diff --git a/.github/workflows/gorelease.yml b/.github/workflows/gorelease.yml index 250e6db..3cebc76 100644 --- a/.github/workflows/gorelease.yml +++ b/.github/workflows/gorelease.yml @@ -30,7 +30,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - name: Gorelease cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/bin/gorelease @@ -52,4 +52,4 @@ jobs:
             ${{ steps.gorelease.outputs.report }}
-            
\ No newline at end of file + diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b534286..3c0fca5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: uses: actions/checkout@v2 - name: Go cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: # In order: # * Module download cache @@ -51,7 +51,7 @@ jobs: - name: Restore base test coverage id: base-coverage if: matrix.go-version == env.COV_GO_VERSION && github.event.pull_request.base.sha != '' - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | unit-base.txt