diff --git a/src/changedFiles.ts b/src/changedFiles.ts index 361ecbc3a8e..fc5fd7c287e 100644 --- a/src/changedFiles.ts +++ b/src/changedFiles.ts @@ -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)