Skip to content

Commit d85d7b1

Browse files
committed
feat(cache): use the mode in the cache key to avoid using wrong cache
1 parent 28d7fb8 commit d85d7b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ runs:
8787
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
8888
with:
8989
path: ${{ inputs.instruments-cache-dir }}
90-
key: codspeed-instruments-${{ runner.os }}-${{ runner.arch }}-${{steps.versions.outputs.kernel-version }}-${{ steps.versions.outputs.runner-version }}
90+
key: codspeed-instruments-${{ inputs.mode }}-${{ runner.os }}-${{ runner.arch }}-${{steps.versions.outputs.kernel-version }}-${{ steps.versions.outputs.runner-version }}
9191
restore-keys: |
92-
codspeed-instruments-${{ runner.os }}-${{ runner.arch }}-${{steps.versions.outputs.kernel-version }}-
92+
codspeed-instruments-${{ inputs.mode }}-${{ runner.os }}-${{ runner.arch }}-${{steps.versions.outputs.kernel-version }}-
9393
9494
- shell: bash
9595
env:

0 commit comments

Comments
 (0)