Skip to content

Commit

Permalink
fix: multiline comment regression
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-evans committed Apr 19, 2023
1 parent d7e13b3 commit 1ece20b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@ jobs:
uses: ./
with:
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
comment: '[CI] test ${{ matrix.os }}'
comment: |
[CI]
test ${{ matrix.os }}
delete-branch: true
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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.delete-branch }}" = true ]; then
echo delete-branch="--delete-branch" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 1ece20b

Please sign in to comment.