From 3dbfdd976552294e5e17da7a57fbeacd70818cd9 Mon Sep 17 00:00:00 2001 From: akartasov Date: Fri, 28 Oct 2022 10:13:36 +0700 Subject: [PATCH] fix: remove deprecated commands and post comments from file --- action.yml | 15 ++------------- core/entrypoint.sh | 2 -- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/action.yml b/action.yml index 0b744ef..aaf2a9e 100644 --- a/action.yml +++ b/action.yml @@ -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' diff --git a/core/entrypoint.sh b/core/entrypoint.sh index 8b3ec9f..bee90f6 100755 --- a/core/entrypoint.sh +++ b/core/entrypoint.sh @@ -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)