fix: Bundle analysis commenting (#13116)

* fix: Bundle analysis commenting

* Remove if on build step for testing

* Remove GitHub event number check for testing

* Reverted changes for testing
This commit is contained in:
Keith Williams
2024-01-10 14:35:27 +00:00
committed by GitHub
parent d001c4e2ae
commit b69d885ee6
+3 -3
View File
@@ -62,18 +62,18 @@ jobs:
- name: Get comment body
id: get-comment-body
if: success()
if: success() && github.event.number
run: |
cd apps/web
body=$(cat .next/analyze/__bundle_analysis_comment.txt)
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo "{name}={$body}" >> $GITHUB_OUTPUT
echo "{body}={$body}" >> $GITHUB_OUTPUT
- name: Find Comment
uses: peter-evans/find-comment@v2
if: success()
if: success() && github.event.number
id: fc
with:
issue-number: ${{ github.event.number }}