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 5006fe4 commit 0b2d6cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/diff-change-to-dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ jobs:
// PR information
const number = '${{ github.event.pull_request.number }}'
const commit = '${{ github.event.pull_request.head.sha }}'
// 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' +
'```'
'```\n\n' +
`SHA: ${commit}\n`
)

0 comments on commit 0b2d6cc

Please sign in to comment.