feat: Added support for returning old and new names of renamed files (#483)
This commit is contained in:
19
action.yml
19
action.yml
@@ -5,11 +5,19 @@ author: tj-actions
|
||||
inputs:
|
||||
token:
|
||||
description: 'Github token'
|
||||
required: true
|
||||
required: false
|
||||
default: ${{ github.token }}
|
||||
separator:
|
||||
description: 'Split character for array output'
|
||||
required: true
|
||||
description: 'Split character for output strings'
|
||||
required: false
|
||||
default: " "
|
||||
old_new_separator:
|
||||
description: 'Split character for old and new filename pairs'
|
||||
required: false
|
||||
default: ","
|
||||
old_new_files_separator:
|
||||
description: 'Split character for multiple old and new filename pairs'
|
||||
required: false
|
||||
default: " "
|
||||
files_from_source_file:
|
||||
description: 'Source file(s) to populate the files input'
|
||||
@@ -74,6 +82,9 @@ outputs:
|
||||
renamed_files:
|
||||
description: List of renamed files.
|
||||
value: ${{ steps.changed-files.outputs.renamed_files }}
|
||||
all_old_new_renamed_files:
|
||||
description: List of all old and new names of renamed files.
|
||||
value: ${{ steps.changed-files.outputs.all_old_new_renamed_files }}
|
||||
type_changed_files:
|
||||
description: List of files that had type changes.
|
||||
value: ${{ steps.changed-files.outputs.type_changed_files }}
|
||||
@@ -182,6 +193,8 @@ 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_SEPARATOR: ${{ inputs.old_new_separator }}
|
||||
INPUT_OLD_NEW_FILES_SEPARATOR: ${{ inputs.old_new_files_separator }}
|
||||
|
||||
branding:
|
||||
icon: file-text
|
||||
|
||||
Reference in New Issue
Block a user