From cdca84aae1ef486102e6d21573e6e8f83278a5b8 Mon Sep 17 00:00:00 2001 From: chahat sagar <109112505+chahatsagarmain@users.noreply.github.com> Date: Mon, 6 Jan 2025 02:22:45 +0530 Subject: [PATCH] Update action.yaml Signed-off-by: chahat sagar <109112505+chahatsagarmain@users.noreply.github.com> --- .github/actions/verify-metrics-snapshot/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/verify-metrics-snapshot/action.yaml b/.github/actions/verify-metrics-snapshot/action.yaml index 0726b508a3d..ab37814c0ee 100644 --- a/.github/actions/verify-metrics-snapshot/action.yaml +++ b/.github/actions/verify-metrics-snapshot/action.yaml @@ -40,7 +40,7 @@ runs: - name: Cache scraped metrics for tagged release for longer retention id: tagged-metrics - if: ${{ (contains(github.ref, 'main') == 'true') && (steps.check-cache.outputs.cache-hit != 'true') }} + if: ${{ (github.ref_name == 'main') && (steps.check-cache.outputs.cache-hit != 'true') }} uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: ./.metrics/${{ inputs.snapshot }}