Skip to content

Commit cbd754c

Browse files
committed
veristat: include branch name in the cache key
This will allow to distinguish between bpf-next and other base branches. Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
1 parent b8c751e commit cbd754c

File tree

1 file changed

+2
-2
lines changed
  • .github/actions/veristat_baseline_compare

1 file changed

+2
-2
lines changed

.github/actions/veristat_baseline_compare/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ runs:
2222
- if: ${{ github.event_name == 'pull_request' }}
2323
uses: actions/cache/restore@v4
2424
with:
25-
key: ${{ inputs.baseline_name }}
25+
key: ${{ inputs.baseline_name }}-${{ github.base_ref }}
2626
restore-keys: |
2727
${{ inputs.baseline_name }}-
2828
path: '${{ github.workspace }}/${{ inputs.baseline_name }}'
@@ -45,5 +45,5 @@ runs:
4545
- if: ${{ github.event_name == 'push' }}
4646
uses: actions/cache/save@v4
4747
with:
48-
key: ${{ inputs.baseline_name }}-${{ github.run_id }}
48+
key: ${{ inputs.baseline_name }}-${{ github.ref_name }}-${{ github.run_id }}
4949
path: '${{ github.workspace }}/${{ inputs.baseline_name }}'

0 commit comments

Comments
 (0)