From 276d7966e389d888f011539a86c8920025ea0626 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Wed, 19 Apr 2023 10:51:38 +0900 Subject: [PATCH] fix: multiline comment regression (#844) --- .github/workflows/ci.yml | 4 +++- action.yml | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53c45fd..a3216e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,7 +54,9 @@ jobs: uses: ./ with: issue-number: ${{ steps.ciff.outputs.issue-number }} - comment: '[CI] test ${{ matrix.os }}' + comment: | + [CI] + test ${{ matrix.os }} labels: | wontfix ci-test diff --git a/action.yml b/action.yml index b95a4d4..d097152 100644 --- a/action.yml +++ b/action.yml @@ -31,7 +31,11 @@ runs: shell: bash run: | if [ -n "${{ inputs.comment }}" ]; then - echo comment="--comment \"${{ inputs.comment }}\"" >> $GITHUB_OUTPUT + comment="--comment \"${{ inputs.comment }}\"" + delimiter="$(openssl rand -hex 8)" + echo "comment<<$delimiter" >> $GITHUB_OUTPUT + echo "$comment" >> $GITHUB_OUTPUT + echo "$delimiter" >> $GITHUB_OUTPUT fi if [ "${{ inputs.close-reason }}" == "not_planned" ]; then