From bea4e8616780e3893fe039ba288bb9a89ec6ecd2 Mon Sep 17 00:00:00 2001 From: ajnart Date: Mon, 15 May 2023 17:45:20 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Continue=20on=20error=20and=20up?= =?UTF-8?q?date=20comment=20feature?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/nextjs_bundle_analysis.yml | 29 ++++---------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/.github/workflows/nextjs_bundle_analysis.yml b/.github/workflows/nextjs_bundle_analysis.yml index a2ac54930..70271a550 100644 --- a/.github/workflows/nextjs_bundle_analysis.yml +++ b/.github/workflows/nextjs_bundle_analysis.yml @@ -74,6 +74,7 @@ jobs: - name: Download base branch bundle stats uses: dawidd6/action-download-artifact@v2 + continue-on-error: true if: success() && github.event.number with: workflow: nextjs_bundle_analysis.yml @@ -106,26 +107,8 @@ jobs: echo "$(cat .next/analyze/__bundle_analysis_comment.txt)" >> $GITHUB_OUTPUT echo EOF >> $GITHUB_OUTPUT - - name: Find Comment - uses: peter-evans/find-comment@v2 - if: success() && github.event.number - id: fc - with: - issue-number: ${{ github.event.number }} - body-includes: '' - - - name: Create Comment - uses: peter-evans/create-or-update-comment@v2 - if: success() && github.event.number && steps.fc.outputs.comment-id == 0 - with: - issue-number: ${{ github.event.number }} - body: ${{ steps.get-comment-body.outputs.body }} - - - name: Update Comment - uses: peter-evans/create-or-update-comment@v2 - if: success() && github.event.number && steps.fc.outputs.comment-id != 0 - with: - issue-number: ${{ github.event.number }} - body: ${{ steps.get-comment-body.outputs.body }} - comment-id: ${{ steps.fc.outputs.comment-id }} - edit-mode: replace + - name: Comment + uses: marocchino/sticky-pull-request-comment@v2 + with: + header: next-touched-pages + message: ${{ steps.get-comment-body.outputs.body }} \ No newline at end of file