From 58f9e41e0b27d82ef60f96f7e5f8e467a5fc04af Mon Sep 17 00:00:00 2001 From: Bocki Date: Mon, 28 Mar 2022 23:04:38 +0200 Subject: [PATCH] [core] Change comment behavior (#2558) --- .github/workflows/prhtmlgenerator.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/prhtmlgenerator.yml b/.github/workflows/prhtmlgenerator.yml index 83c52272..6267140d 100644 --- a/.github/workflows/prhtmlgenerator.yml +++ b/.github/workflows/prhtmlgenerator.yml @@ -48,8 +48,10 @@ jobs: body="${body//'%'/'%25'}"; body="${body//$'\n'/'%0A'}"; body="${body//$'\r'/'%0D'}"; + echo "::set-output name=bodylength::${#body}" echo "::set-output name=body::$body" - name: Find Comment + if: ${{ steps.testrun.outputs.bodylength > 130 }} uses: peter-evans/find-comment@v2 id: fc with: @@ -57,6 +59,7 @@ jobs: comment-author: 'github-actions[bot]' body-includes: Pull request artifacts - name: Create or update comment + if: ${{ steps.testrun.outputs.bodylength > 130 }} uses: peter-evans/create-or-update-comment@v2 with: comment-id: ${{ steps.fc.outputs.comment-id }}