mirror of
https://github.com/tj-actions/changed-files
synced 2024-12-17 03:47:20 +00:00
chore: add warrning message to diff error (#1593)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
bbe796033e
commit
4196030939
3 changed files with 6 additions and 0 deletions
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
|
@ -551,6 +551,12 @@ export const getSHAForPullRequestEvent = async (
|
|||
diff
|
||||
}))
|
||||
) {
|
||||
core.warning(
|
||||
'If this pull request is from a forked repository, please set the checkout action `repository` input to the same repository as the pull request.'
|
||||
)
|
||||
core.warning(
|
||||
'This can be done by setting actions/checkout `repository` to ${{ github.event.pull_request.head.repo.full_name }}'
|
||||
)
|
||||
throw new Error(
|
||||
`Unable to determine a difference between ${previousSha}${diff}${currentSha}`
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue