Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb0b3dec

Browse files
committed
fix: use consistent multi-line string formatting throughout workflow
- Replace heredoc with simple quoted strings for comment bodies- Ensures proper variable expansion for GITHUB_REPOSITORY and RUN_ID- Maintains consistency with bash best practices in GitHub Actions
1 parent2ff5fd7 commitb0b3dec

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

‎.github/workflows/documentation-check.yaml‎

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,12 @@ jobs:
9191
GITHUB_REPOSITORY:${{ github.repository }}
9292
RUN_ID:${{ github.run_id }}
9393
run:|
94-
COMMENT_BODY=$(cat <<'EOF'
95-
🤖 **Documentation Check Started**
94+
COMMENT_BODY="🤖 **Documentation Check Started**
9695
97-
Analyzing PR changes to determine if documentation updates are needed...
96+
Analyzing PR changes to determine if documentation updates are needed...
9897

99-
[View workflow run](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${RUN_ID})
100-
EOF
101-
)
98+
[View workflow run](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${RUN_ID})
99+
"
102100
COMMENT_ID=$(gh pr comment"${PR_NUMBER}" --body "${COMMENT_BODY}" --repo "${GITHUB_REPOSITORY}" | grep -oP 'https://github.com/.*/pull/.*#issuecomment-\K\d+')
103101
echo "comment_id=${COMMENT_ID}" >> "${GITHUB_OUTPUT}"
104102

@@ -255,16 +253,14 @@ EOF
255253
run:|
256254
TASK_OUTPUT=$(cat /tmp/task_output.txt)
257255
258-
COMMENT_BODY=$(cat <<EOF
259-
🤖 **Documentation Check Complete**
256+
COMMENT_BODY="🤖 **Documentation Check Complete**
260257
261-
${TASK_OUTPUT}
258+
${TASK_OUTPUT}
262259

263-
---
264-
Task: https://dev.coder.com/tasks/${TASK_NAME}
265-
[View workflow run](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${RUN_ID})
266-
EOF
267-
)
260+
---
261+
Task:https://dev.coder.com/tasks/${TASK_NAME}
262+
[View workflow run](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${RUN_ID})
263+
"
268264
269265
# Update the existing comment
270266
gh api \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp