Skip to content

Commit c749caf

Browse files
committed
feat: Add cat_file step to read cache configuration for save_cache
1 parent 3bed963 commit c749caf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,17 @@ runs:
139139
INPUT_TARGET: ${{ inputs.target }}
140140
INPUT_RECURSIVE: ${{ inputs.recursive }}
141141

142+
- id: cat_file
143+
if: always()
144+
shell: bash
145+
run: |
146+
echo "content=$(cat .firmware-action/cache-dirs.json)" >> "${GITHUB_OUTPUT}"
147+
142148
- name: save_cache
143149
if: always()
144150
uses: actions/cache/save@v4
145151
with:
146152
path: |
147-
${{ fromJSON( cat '.firmware-action/cache-dirs.json' ).paths }}
153+
${{ fromJSON(steps.cat_file.outputs.content).paths }}
148154
key: firmware-action-${{ hashFiles(inputs.config) }}
149155

0 commit comments

Comments
 (0)