Skip to content

Commit 1f361d5

Browse files
lindseywildCopilot
andcommitted
Fix missing newline before EOF delimiter in gh-cache/cache output
The 'Output cached value' step cats a JSON file into GITHUB_OUTPUT followed by an EOF delimiter, but if the file has no trailing newline the delimiter lands on the same line as the content, causing: 'Invalid value. Matching delimiter not found EOF' Add a bare echo to ensure a newline before the closing delimiter. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b55df88 commit 1f361d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ runs:
6363
echo "value<<EOF" >> $GITHUB_OUTPUT
6464
if [ -f "${{ inputs.key }}" ]; then
6565
cat "${{ inputs.key }}" >> $GITHUB_OUTPUT
66+
echo >> $GITHUB_OUTPUT
6667
echo "Outputted 'value=$(cat "${{ inputs.key }}")'"
6768
else
6869
echo "Skipped outputting 'value'"

0 commit comments

Comments
 (0)