Skip to content

Commit

Permalink
fix: multiline comment regression (#849)
Browse files Browse the repository at this point in the history
* fix: multiline comment regression

* fix ci step order
  • Loading branch information
peter-evans authored Apr 19, 2023
1 parent d7e13b3 commit a192af8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ jobs:
- uses: actions/checkout@v3
with:
ref: main
- uses: actions/download-artifact@v3
with:
name: action.yml
path: .

- name: Create change
run: date +%s > report.txt
Expand All @@ -58,9 +54,16 @@ jobs:
[1]: https://github.com/peter-evans/create-pull-request
branch: ci-test-${{ matrix.os }}-${{ github.sha }}

- uses: actions/download-artifact@v3
with:
name: action.yml
path: .

- name: Close Pull
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 a192af8

Please sign in to comment.