Skip to content

Commit 5932fdb

Browse files
authored
add runner.arch into cache key for bats (#17)
Signed-off-by: Akhil Mohan <[email protected]>
1 parent a466fac commit 5932fdb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

action.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ runs:
109109
with:
110110
path: |
111111
~/.local/share/bats
112-
key: ${{ runner.os }}-bats-${{ inputs.bats-version }}
112+
key: ${{ runner.os }}-${{ runner.arch }}-bats-${{ inputs.bats-version }}
113113

114114
- name: "Set PATH in case of cache-hit"
115115
if: inputs.bats-install == 'true' && steps.bats-cache.outputs.cache-hit == 'true'
@@ -155,7 +155,7 @@ runs:
155155
id: support-cache
156156
with:
157157
path: ${{ inputs.support-path }}
158-
key: ${{ runner.os }}-bats-support-${{ inputs.support-version }}
158+
key: ${{ runner.os }}-${{ runner.arch }}-bats-support-${{ inputs.support-version }}
159159

160160
- name: "Download and install Bats-support"
161161
if: inputs.support-install == 'true' && steps.support-cache.outputs.cache-hit != 'true'
@@ -188,7 +188,7 @@ runs:
188188
id: assert-cache
189189
with:
190190
path: ${{ inputs.assert-path }}
191-
key: ${{ runner.os }}-bats-assert-${{ inputs.assert-version }}
191+
key: ${{ runner.os }}-${{ runner.arch }}-bats-assert-${{ inputs.assert-version }}
192192

193193
- name: "Download and install Bats-assert"
194194
if: inputs.assert-install == 'true' && steps.assert-cache.outputs.cache-hit != 'true'
@@ -221,7 +221,7 @@ runs:
221221
id: detik-cache
222222
with:
223223
path: ${{ inputs.detik-path }}
224-
key: ${{ runner.os }}-bats-detik-${{ inputs.detik-version }}
224+
key: ${{ runner.os }}-${{ runner.arch }}-bats-detik-${{ inputs.detik-version }}
225225

226226
- name: "Download and install Bats-detik"
227227
if: inputs.detik-install == 'true' && steps.detik-cache.outputs.cache-hit != 'true'
@@ -253,7 +253,7 @@ runs:
253253
id: file-cache
254254
with:
255255
path: ${{ inputs.file-path }}
256-
key: ${{ runner.os }}-bats-file-${{ inputs.file-version }}
256+
key: ${{ runner.os }}-${{ runner.arch }}-bats-file-${{ inputs.file-version }}
257257

258258
- name: "Download and install Bats-file"
259259
if: inputs.file-install == 'true' && steps.file-cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)