mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 11:52:00 +00:00
Try to fix the workflow
This commit is contained in:
20
.github/workflows/analyze_comment.yml
vendored
20
.github/workflows/analyze_comment.yml
vendored
@@ -33,18 +33,16 @@ jobs:
|
||||
id: get-comment-body
|
||||
if: success()
|
||||
run: |
|
||||
echo 'body<<EOF' >> $GITHUB_OUTPUT
|
||||
echo '' >> $GITHUB_OUTPUT
|
||||
echo '<details>' >> $GITHUB_OUTPUT
|
||||
echo '' >> $GITHUB_OUTPUT
|
||||
cat analysis_comment.txt/__bundle_analysis_comment.txt >> $GITHUB_OUTPUT
|
||||
echo '' >> $GITHUB_OUTPUT
|
||||
echo '</details>' >> $GITHUB_OUTPUT
|
||||
echo '' >> $GITHUB_OUTPUT
|
||||
echo 'EOF' >> $GITHUB_OUTPUT
|
||||
pr_number=$(cat pr_number/pr_number)
|
||||
body=$(cat analysis_comment.txt/__bundle_analysis_comment.txt)
|
||||
body="## Size Changes
|
||||
<details>
|
||||
|
||||
${body}
|
||||
|
||||
</details>"
|
||||
body="${body//'%'/'%25'}"
|
||||
body="${body//$'\n'/'%0A'}"
|
||||
body="${body//$'\r'/'%0D'}"
|
||||
echo "body=$body" >> $GITHUB_OUTPUT
|
||||
echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Find Comment
|
||||
|
||||
Reference in New Issue
Block a user