Added support for returning old and new names of renamed files

This commit is contained in:
Tonye Jack
2022-05-14 14:33:40 -04:00
parent 67e0fe5e75
commit fd30e95c05
3 changed files with 21 additions and 7 deletions

View File

@@ -5,12 +5,16 @@ author: tj-actions
inputs:
token:
description: 'Github token'
required: true
required: false
default: ${{ github.token }}
separator:
description: 'Split character for array output'
required: true
required: false
default: " "
old_new_files_separator:
description: 'Split character for old and new filename pairs'
required: false
default: ","
files_from_source_file:
description: 'Source file(s) to populate the files input'
required: false
@@ -74,6 +78,9 @@ outputs:
renamed_files:
description: List of renamed files.
value: ${{ steps.changed-files.outputs.renamed_files }}
old_new_files:
description: List of old and new names of renamed files.
value: ${{ steps.changed-files.outputs.old_new_files }}
type_changed_files:
description: List of files that had type changes.
value: ${{ steps.changed-files.outputs.type_changed_files }}
@@ -182,6 +189,7 @@ runs:
INPUT_TARGET_BRANCH: ${{ steps.changed-files-diff-sha.outputs.target_branch }}
INPUT_CURRENT_BRANCH: ${{ steps.changed-files-diff-sha.outputs.current_branch }}
INPUT_QUOTEPATH: ${{ inputs.quotepath }}
INPUT_OLD_NEW_FILES_SEPARATOR: ${{ inputs.old_new_files_separator }}
branding:
icon: file-text