From e95cd4a878f62db9c6f396134139b7420d633fad Mon Sep 17 00:00:00 2001 From: Utsab Chowdhury Date: Mon, 15 Jan 2024 16:17:33 +0530 Subject: [PATCH] chore: update workflow --- .github/workflows/component-test-report.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/component-test-report.yml b/.github/workflows/component-test-report.yml index 136928db18..9358b84514 100644 --- a/.github/workflows/component-test-report.yml +++ b/.github/workflows/component-test-report.yml @@ -46,14 +46,14 @@ jobs: uses: actions/github-script@v7 with: github-token: ${{ secrets.PAT }} - script: | - const { owner, repo } = context.repo; - // Get the pull request number - const prNumber = context.payload.pull_request.number; - const commentBody = `Test report for this run is available at: https://company.s3.amazonaws.com/integrations-test-reports/${prNumber}/test-report.html`; - - - // Comment on the pull request - await github.issues.createComment({ owner, repo, issue_number: prNumber, body: commentBody }); + script: | + const { owner, repo } = context.repo; + // Get the pull request number + const prNumber = context.payload.pull_request.number; + const commentBody = `Test report for this run is available at: https://company.s3.amazonaws.com/integrations-test-reports/${prNumber}/test-report.html`; + + + // Comment on the pull request + await github.issues.createComment({ owner, repo, issue_number: prNumber, body: commentBody }); \ No newline at end of file