From e63331169a58a4bfd9a8ca0ff58074f35dd1b37c Mon Sep 17 00:00:00 2001 From: chahat sagar <109112505+chahatsagarmain@users.noreply.github.com> Date: Mon, 6 Jan 2025 01:38:48 +0530 Subject: [PATCH] Update action.yaml Signed-off-by: chahat sagar <109112505+chahatsagarmain@users.noreply.github.com> --- .../verify-metrics-snapshot/action.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/actions/verify-metrics-snapshot/action.yaml b/.github/actions/verify-metrics-snapshot/action.yaml index 54ca1a43929..2383f8b3b33 100644 --- a/.github/actions/verify-metrics-snapshot/action.yaml +++ b/.github/actions/verify-metrics-snapshot/action.yaml @@ -23,20 +23,20 @@ runs: path: ./.metrics/${{ inputs.snapshot }} retention-days: 7 - - name: Cache scraped metrics for tagged release for longer retention - id: tagged-metrics - if: contains(github.ref,'tags') - uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 - with: - path: ./.metrics/${{ inputs.snapshot }} - key: ${{ github.ref_name }}_${{ inputs.artifact_key }} - - name: Get v2 tag shell: bash run: | v2_tag=$(make echo-v2) echo "v2_tag=$v2_tag" >> $GITHUB_ENV echo "$v2_tag" + + - name: Cache scraped metrics for tagged release for longer retention + id: tagged-metrics + if: "contains(github.event.head_commit.message, 'Release')" + uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 + with: + path: ./.metrics/${{ inputs.snapshot }} + key: ${{ github.ref_name }}_${{ inputs.artifact_key }} - name: Download the cached tagged metrics id: cache-metrics @@ -63,4 +63,4 @@ runs: path: ./.metrics/diff_${{ inputs.snapshot }} retention-days: 7 - \ No newline at end of file +