Skip to content

Commit 6b4f62c

Browse files
committed
fix: use proper variable expansion in Bash here-docs for Markdown links
Correctly using syntax instead of in Markdown links within Bash here-documents to ensure proper variable expansion.
1 parent b0f4315 commit 6b4f62c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ jobs:
10301030
IMAGES_MODIFIED="${{ needs.verify-docs-changes.outputs.images_modified }}"
10311031
10321032
# Create base preview section with word metrics
1033-
PREVIEW_SECTION="📖 [View documentation preview]($PREVIEW_URL) (+$WORDS_ADDED/-$WORDS_REMOVED words"
1033+
PREVIEW_SECTION="📖 [View documentation preview](${PREVIEW_URL}) (+$WORDS_ADDED/-$WORDS_REMOVED words"
10341034
10351035
# Add image info if present
10361036
if [[ "$IMAGES_TOTAL" != "0" ]]; then
@@ -1044,7 +1044,7 @@ jobs:
10441044
10451045
# Add link to most changed file if available
10461046
if [[ -n "$MOST_CHANGED" && -n "$FILE_PREVIEW_URL" ]]; then
1047-
PREVIEW_SECTION="$PREVIEW_SECTION | [View most changed file \`$MOST_CHANGED\`]($FILE_PREVIEW_URL)"
1047+
PREVIEW_SECTION="$PREVIEW_SECTION | [View most changed file \`$MOST_CHANGED\`](${FILE_PREVIEW_URL})"
10481048
fi
10491049
10501050
# Check if preview link already exists and update accordingly
@@ -1126,17 +1126,17 @@ jobs:
11261126
COMMENT=$(cat <<EOF
11271127
### Documentation Preview 📖
11281128

1129-
[View full documentation preview]($PREVIEW_URL)
1129+
[View full documentation preview](${PREVIEW_URL})
11301130

1131-
Most changed file: [View \`$MOST_CHANGED\`]($FILE_PREVIEW_URL) (+$MOST_CHANGED_ADDITIONS lines)
1131+
Most changed file: [View \`$MOST_CHANGED\`](${FILE_PREVIEW_URL}) (+$MOST_CHANGED_ADDITIONS lines)
11321132
EOF
11331133
)
11341134
else
11351135
# Just link to the main docs page
11361136
COMMENT=$(cat <<EOF
11371137
### Documentation Preview 📖
11381138

1139-
[View documentation preview]($PREVIEW_URL)
1139+
[View documentation preview](${PREVIEW_URL})
11401140
EOF
11411141
)
11421142
fi

0 commit comments

Comments
 (0)