From 4955217af4f5c2afa919359cf97dbd99bb0c7e83 Mon Sep 17 00:00:00 2001 From: chahatsagarmain Date: Sun, 5 Jan 2025 22:22:47 +0530 Subject: [PATCH] cache fix Signed-off-by: chahatsagarmain --- .github/actions/verify-metrics-snapshot/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/verify-metrics-snapshot/action.yaml b/.github/actions/verify-metrics-snapshot/action.yaml index 7f8b1a9c3a3..3032aac91d0 100644 --- a/.github/actions/verify-metrics-snapshot/action.yaml +++ b/.github/actions/verify-metrics-snapshot/action.yaml @@ -25,7 +25,7 @@ runs: - name: Cache scraped metrics for tagged release for longer retention if: contains(github.ref,'tags') - uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 + uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: ./.metrics/${{ inputs.snapshot }} key: ${{ github.ref_name }}_${{ inputs.artifact_key }} @@ -40,7 +40,7 @@ runs: - name: Download the cached tagged metrics id: cache-metrics if: contains(github.ref,'tags') == 'false' - uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 + uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: ./.metrics/cached_${{ inputs.snapshot}} key: ${{ env.v2_tag }}_${{ inputs.artifact_key }}