mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-06 09:41:22 +00:00
Renamed has_changed to all_changed (#33)
This commit is contained in:
parent
c7eb6e4282
commit
8a7dfe02e7
2 changed files with 6 additions and 6 deletions
|
@ -33,7 +33,7 @@ Using the default separator.
|
||||||
| Output | type | example | description |
|
| Output | type | example | description |
|
||||||
|:-------------------:|:------------:|:------------------------------:|:----------------------------------------:|
|
|:-------------------:|:------------:|:------------------------------:|:----------------------------------------:|
|
||||||
| all_modified_files | `string` | 'new.txt other.png ...' | Select all modified files <br /> *i.e a combination of all added, <br />copied and modified files (ACM).* |
|
| all_modified_files | `string` | 'new.txt other.png ...' | Select all modified files <br /> *i.e a combination of all added, <br />copied and modified files (ACM).* |
|
||||||
| has_changed | `string` | `true OR false` | Returns `true` only when the filenames provided using `files` input have all changed |
|
| all_changed | `string` | `true OR false` | Returns `true` only when the filenames provided using `files` input have all changed |
|
||||||
| all_changed_files | `string` | 'new.txt other.png ...' | Select all paths (*) <br /> *i.e a combination of all options below.* |
|
| all_changed_files | `string` | 'new.txt other.png ...' | Select all paths (*) <br /> *i.e a combination of all options below.* |
|
||||||
| added_files | `string` | 'new.txt other.png ...' | Select only files that are Added (A) |
|
| added_files | `string` | 'new.txt other.png ...' | Select only files that are Added (A) |
|
||||||
| copied_files | `string` | 'new.txt other.png ...' | Select only files that are Copied (C) |
|
| copied_files | `string` | 'new.txt other.png ...' | Select only files that are Copied (C) |
|
||||||
|
@ -138,7 +138,7 @@ jobs:
|
||||||
^(mynewfile|custom)
|
^(mynewfile|custom)
|
||||||
|
|
||||||
- name: Run step if all files listed above have changed
|
- name: Run step if all files listed above have changed
|
||||||
if: steps.changed-files-specific.outputs.has_changed
|
if: steps.changed-files-specific.outputs.all_changed
|
||||||
run: |
|
run: |
|
||||||
echo "Both my-file.txt and test.txt have changed."
|
echo "Both my-file.txt and test.txt have changed."
|
||||||
|
|
||||||
|
|
|
@ -42,9 +42,9 @@ outputs:
|
||||||
all_modified_files:
|
all_modified_files:
|
||||||
description: List of all copied modified and added files
|
description: List of all copied modified and added files
|
||||||
value: ${{ steps.changed_files.outputs.all_modified_files }}
|
value: ${{ steps.changed_files.outputs.all_modified_files }}
|
||||||
has_changed:
|
all_changed:
|
||||||
description: Return true only when all files provided using the files input have all changed.
|
description: Return true only when all files provided using the files input have all changed.
|
||||||
value: ${{ steps.changed_files.outputs.has_changed }}
|
value: ${{ steps.changed_files.outputs.all_changed }}
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
|
@ -134,9 +134,9 @@ runs:
|
||||||
IFS=$'\n' SORTED_OUTPUT_ALL_MODIFIED_FILES=($(sort <<<"${OUTPUT_ALL_MODIFIED_FILES[*]}"))
|
IFS=$'\n' SORTED_OUTPUT_ALL_MODIFIED_FILES=($(sort <<<"${OUTPUT_ALL_MODIFIED_FILES[*]}"))
|
||||||
|
|
||||||
if [[ "${SORTED_INPUT_FILES[*]}" == "${SORTED_OUTPUT_ALL_MODIFIED_FILES[*]}" ]]; then
|
if [[ "${SORTED_INPUT_FILES[*]}" == "${SORTED_OUTPUT_ALL_MODIFIED_FILES[*]}" ]]; then
|
||||||
echo "::set-output name=has_changed::true"
|
echo "::set-output name=all_changed::true"
|
||||||
else
|
else
|
||||||
echo "::set-output name=has_changed::false"
|
echo "::set-output name=all_changed::false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::set-output name=added_files::$ADDED"
|
echo "::set-output name=added_files::$ADDED"
|
||||||
|
|
Loading…
Add table
Reference in a new issue