Skip to content

Commit

Permalink
Use PR head commit SHA in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed May 22, 2023
1 parent 66b38c8 commit 9adaf2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/diff-change-to-dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ jobs:
// PR information
const number = '${{ github.event.pull_request.number }}'
const commit = '${{ github.event.pull_request.head.sha }}'
const url = '${{ github.event.pull_request.url }}'
// Add or update comment on PR
await comment({ github, context }, number, 'Diff release', '## Changes to dist\n' +
'```diff\n' +
`${diffText}\n` +
'\nSHA: ${context.sha}\n' +
`\nSHA: ${commit}\n` +
'```'
)

0 comments on commit 9adaf2d

Please sign in to comment.