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:
6
.github/workflows/lint-agents.yml
vendored
6
.github/workflows/lint-agents.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user