Skip to content

Commit

Permalink
Update action.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: chahat sagar <[email protected]>
  • Loading branch information
chahatsagarmain authored Jan 5, 2025
1 parent 9325938 commit e633311
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/actions/verify-metrics-snapshot/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -63,4 +63,4 @@ runs:
path: ./.metrics/diff_${{ inputs.snapshot }}
retention-days: 7



0 comments on commit e633311

Please sign in to comment.