8000 attempt to fix yaml issue · coder/coder@721f4f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 721f4f0

Browse files
committed
attempt to fix yaml issue
1 parent e5fa379 commit 721f4f0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/docs-preview-link.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ env:
6565
API_RETRY_DELAY: '2'
6666
# Documentation paths configuration
6767
DOCS_PRIMARY_PATH: 'docs/'
68-
DOCS_FILE_PATTERNS: '^docs/|^.*\.md$'$'
68+
DOCS_FILE_PATTERNS: '^docs/|^.*\.md$'
6969
# Documentation metrics thresholds for highlighting significant changes
7070
SIGNIFICANT_WORDS_THRESHOLD: '100'
7171
# Throttling controls for synchronize events
@@ -1057,9 +1057,8 @@ jobs:
10571057
echo "Adding preview link to PR description"
10581058
# Add preview link to the end of the PR description
10591059
if [[ -n "$PR_BODY" ]]; then
1060-
NEW_BODY="${PR_BODY}
1061-
1062-
$PREVIEW_SECTION"
1060+
# Use echo to safely handle multi-line strings
1061+
NEW_BODY=$(echo "$PR_BODY" && echo "" && echo "$PREVIEW_SECTION")
10631062
else
10641063
NEW_BODY="$PREVIEW_SECTION"
10651064
fi

0 commit comments

Comments
 (0)
0