mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-29 13:34:51 +00:00
Renamed Files decomposed into Deleted: previous_filename and Added:filename (#2236)
Co-authored-by: Tonye Jack <jtonye@ymail.com>
This commit is contained in:
parent
b4c0974161
commit
f8034fbb84
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,7 @@ export const getChangedFilesFromGithubAPI = async ({
|
|||
|
||||
if (changeType === ChangeTypeEnum.Renamed) {
|
||||
if (inputs.outputRenamedFilesAsDeletedAndAdded) {
|
||||
changedFiles[ChangeTypeEnum.Deleted].push(item.filename)
|
||||
changedFiles[ChangeTypeEnum.Deleted].push(item.previous_filename || '')
|
||||
changedFiles[ChangeTypeEnum.Added].push(item.filename)
|
||||
} else {
|
||||
changedFiles[ChangeTypeEnum.Renamed].push(item.filename)
|
||||
|
|
Loading…
Reference in a new issue