Skip to content

Commit 41cad4f

Browse files
committed
fix(ci): prevent printf from treating error message as option
printf "$ERRORS" fails when $ERRORS starts with a dash. Use printf '%b' "$ERRORS" so the variable is an argument, not the format string. Made-with: Cursor
1 parent 1d87dcf commit 41cad4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr-metadata-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
{
9090
echo "## PR Metadata Check Failed"
9191
echo ""
92-
printf "$ERRORS"
92+
printf '%b' "$ERRORS"
9393
echo ""
9494
echo "Please update the PR at: $PR_URL"
9595
} >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)