Skip to content

Commit

Permalink
chore: update workflow to add PR number for folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Jan 15, 2024
1 parent 873f1db commit e544a5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/component-test-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { owner, repo } = context.repo;
const runNumber = process.env.GITHUB_RUN_NUMBER;
const commentBody = `Test report for this run is available at: https://company.s3.amazonaws.com/integrations-test-reports/${runNumber}/test-report.html`;
// 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 });
Expand Down

0 comments on commit e544a5d

Please sign in to comment.