From e1f11fbb23175048d46fd217466190fb1aeec838 Mon Sep 17 00:00:00 2001 From: "s. kusuhara" <49839611+mikana0918@users.noreply.github.com> Date: Sun, 2 Jan 2022 00:47:24 +0900 Subject: [PATCH 1/3] ci: update --- .github/workflows/ci.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c803990..5472c2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,4 +36,25 @@ jobs: run: npm run lint - name: Run tests 🧪 - run: npm run test + run: | + npm run test &> diff.txt + less diff.txt + - id: get-comment-body + run: | + body="$(cat diff.txt)" + body="${body//'%'/'%25'}" + body="${body//$'\n'/'%0A'}" + body="${body//$'\r'/'%0D'}" + echo "::set-output name=body::$body" + - name: Create comment + if: steps.fc.outputs.comment-id == '' + uses: peter-evans/create-or-update-comment@v1 + with: + issue-number: ${{ github.event.pull_request.number }} + body: | + ## 🧪 test result 🧪 + ```bash + ${{ steps.get-comment-body.outputs.body }} + ``` + reactions: rocket + From 2591ddaa4b677c69241ddaf44540eb38e7c9ad0b Mon Sep 17 00:00:00 2001 From: "s. kusuhara" <49839611+mikana0918@users.noreply.github.com> Date: Sun, 2 Jan 2022 16:15:36 +0900 Subject: [PATCH 2/3] ci: remove if cond --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5472c2d..3360196 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: body="${body//$'\r'/'%0D'}" echo "::set-output name=body::$body" - name: Create comment - if: steps.fc.outputs.comment-id == '' +# if: steps.fc.outputs.comment-id == '' uses: peter-evans/create-or-update-comment@v1 with: issue-number: ${{ github.event.pull_request.number }} From dcc9188fab1d9131a9f3f824877f4f5c6f26b709 Mon Sep 17 00:00:00 2001 From: "s. kusuhara" <49839611+mikana0918@users.noreply.github.com> Date: Sun, 2 Jan 2022 16:21:09 +0900 Subject: [PATCH 3/3] ci: add debug --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3360196..cc22d30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,9 @@ jobs: run: | npm run test &> diff.txt less diff.txt + - run: | + echo ${{ github.event.pull_request.number }} + echo ${{ steps.fc.outputs.comment-id }} - id: get-comment-body run: | body="$(cat diff.txt)"