mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-06 09:41:22 +00:00
chore: update README.md (#1225)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
7c72320404
commit
b13786805a
3 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
## changed-files
|
||||
|
||||
Retrieve all changed files and directories relative to a target branch, preceeding commit or the last remote commit returning a **relative path** from the project root.
|
||||
Retrieve all changed files and directories relative to a target branch, preceeding commit or the last remote commit returning **relative paths** from the project root.
|
||||
|
||||
## Table of contents
|
||||
|
||||
|
|
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
@ -485,7 +485,7 @@ const getSHAForPullRequestEvent = (inputs, env, workingDirectory, isShallow, has
|
|||
previousSha = env.GITHUB_EVENT_PULL_REQUEST_BASE_SHA;
|
||||
}
|
||||
}
|
||||
if (previousSha === currentSha) {
|
||||
if (previousSha === currentSha && env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA) {
|
||||
currentSha = env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA;
|
||||
}
|
||||
if (!(yield (0, utils_1.canDiffCommits)({
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue