Fix CI: handle multiline output in lint workflow

The GITHUB_OUTPUT format does not support multiline values with simple
echo. Use heredoc delimiter to pass multiple changed file paths correctly.
This commit is contained in:
jiangnan
2026-03-09 01:53:53 +08:00
parent 1a2738f6b9
commit 40d4f6c083

View File

@@ -30,7 +30,11 @@ jobs:
'design/*.md' 'engineering/*.md' 'marketing/*.md' 'product/*.md' \
'project-management/*.md' 'testing/*.md' 'support/*.md' \
'spatial-computing/*.md' 'specialized/*.md' 'strategy/*.md')
echo "files=$FILES" >> "$GITHUB_OUTPUT"
{
echo "files<<ENDOFLIST"
echo "$FILES"
echo "ENDOFLIST"
} >> "$GITHUB_OUTPUT"
if [ -z "$FILES" ]; then
echo "No agent files changed."
else