Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,9 @@ runs:
max_lock_duration: ${{ inputs.max_lock_duration }}
max_duration: ${{ inputs.max_duration }}

- id: comment-body
run: |
body="$(cat report.md)"
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo "::set-output name=body::$body"
shell: bash
working-directory: artifacts
if: ${{ always() }}

- name: Post comment to PR
if: ${{ always() && github.event_name == 'pull_request' }}
uses: peter-evans/create-or-update-comment@v2
uses: peter-evans/create-or-update-comment@v2.1.0
with:
issue-number: ${{ github.event.pull_request.number }}
body: ${{ steps.comment-body.outputs.body }}
body-file: 'artifacts/report.md'
2 changes: 0 additions & 2 deletions core/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ if [[ $response_code -ne 200 ]]; then
exit 1
fi

echo "::set-output name=response::$(cat response.json)"

clone_id=$(jq -r '.clone_id' response.json)
session_id=$(jq -r '.session.session_id' response.json)

Expand Down