Skip to content

Commit 9316e43

Browse files
committed
fix: Support multiline files
1 parent 10b598a commit 9316e43

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/actions/gh-cache/cache/action.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,23 @@ runs:
2929
path: ${{ inputs.key }}
3030
token: ${{ inputs.token }}
3131
fail_on_cache_miss: ${{ inputs.fail_on_cache_miss }}
32-
- if: ${{ inputs.value }}
33-
name: Debug
34-
shell: bash
35-
run: |
36-
echo '${{ inputs.value }}'
37-
echo "${{ inputs.value }}"
38-
echo ${{ inputs.value }}
3932
- if: ${{ inputs.value }}
4033
name: Update cached value
4134
shell: bash
4235
run: |
4336
mkdir -p "$(dirname "${{ inputs.key }}")"
44-
printf "%s" "${{ inputs.value }}" > "${{ inputs.key }}"
37+
echo '${{ inputs.value }}' > "${{ inputs.key }}"
4538
- name: Save cached value
4639
uses: github/continuous-accessibility-scanner/.github/actions/gh-cache/save@smockle/cache-findings
4740
with:
4841
path: ${{ inputs.key }}
4942
token: ${{ inputs.token }}
5043
- name: Output cached value
5144
shell: bash
52-
run: echo "value=$(cat ${{ inputs.key }})" >> $GITHUB_OUTPUT
45+
run: |
46+
echo "value<<EOF" >> $GITHUB_OUTPUT
47+
cat "${{ inputs.key }}" >> $GITHUB_OUTPUT
48+
echo "EOF" >> $GITHUB_OUTPUT
5349
5450
branding:
5551
icon: "archive"

0 commit comments

Comments
 (0)