Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
81ad4b8744 | ||
|
|
cfcb385d2b |
16
HISTORY.md
16
HISTORY.md
@@ -1,5 +1,21 @@
|
||||
# Changelog
|
||||
|
||||
## [v1.1.1](https://github.com/tj-actions/changed-files/tree/v1.1.1) (2021-09-05)
|
||||
|
||||
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v1.1.0...v1.1.1)
|
||||
|
||||
**Implemented enhancements:**
|
||||
|
||||
- \[Feature\] Rename `all_changed_files` to `all_changed_and_modified_files` [\#179](https://github.com/tj-actions/changed-files/issues/179)
|
||||
- \[Feature\] Add support for `any_deleted` and `only_deleted` boolean output. [\#166](https://github.com/tj-actions/changed-files/issues/166)
|
||||
|
||||
**Merged pull requests:**
|
||||
|
||||
- Added support for detecting deleted files. [\#188](https://github.com/tj-actions/changed-files/pull/188) ([jackton1](https://github.com/jackton1))
|
||||
- Rename all\_changed\_files to all\_changed\_and\_modified\_files. [\#187](https://github.com/tj-actions/changed-files/pull/187) ([jackton1](https://github.com/jackton1))
|
||||
- Update other\_changed\_files output to also use the separator [\#186](https://github.com/tj-actions/changed-files/pull/186) ([jackton1](https://github.com/jackton1))
|
||||
- Upgraded to v1.1.0 [\#185](https://github.com/tj-actions/changed-files/pull/185) ([jackton1](https://github.com/jackton1))
|
||||
|
||||
## [v1.1.0](https://github.com/tj-actions/changed-files/tree/v1.1.0) (2021-09-04)
|
||||
|
||||
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v1.0.3...v1.1.0)
|
||||
|
||||
20
README.md
20
README.md
@@ -57,7 +57,7 @@ jobs:
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v1.1.0
|
||||
uses: tj-actions/changed-files@v1.1.1
|
||||
|
||||
- name: List all modified files
|
||||
run: |
|
||||
@@ -118,11 +118,11 @@ jobs:
|
||||
|
||||
- name: Get changed files using defaults
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v1.1.0
|
||||
uses: tj-actions/changed-files@v1.1.1
|
||||
|
||||
- name: Get changed files using a comma separator
|
||||
id: changed-files-comma
|
||||
uses: tj-actions/changed-files@v1.1.0
|
||||
uses: tj-actions/changed-files@v1.1.1
|
||||
with:
|
||||
separator: ","
|
||||
|
||||
@@ -144,7 +144,7 @@ jobs:
|
||||
|
||||
- name: Get specific changed files
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@v1.1.0
|
||||
uses: tj-actions/changed-files@v1.1.1
|
||||
with:
|
||||
files: |
|
||||
my-file.txt
|
||||
@@ -182,14 +182,14 @@ jobs:
|
||||
|
||||
- name: Use a source file or list of file(s) to populate to files input.
|
||||
id: changed-files-specific-source-file
|
||||
uses: tj-actions/changed-files@v1.1.0
|
||||
uses: tj-actions/changed-files@v1.1.1
|
||||
with:
|
||||
files_from_source_file: |
|
||||
test/changed-files-list.txt
|
||||
|
||||
- name: Use a source file or list of file(s) to populate to files input and optionally specify more files.
|
||||
id: changed-files-specific-source-file-and-specify-files
|
||||
uses: tj-actions/changed-files@v1.1.0
|
||||
uses: tj-actions/changed-files@v1.1.1
|
||||
with:
|
||||
files_from_source_file: |
|
||||
test/changed-files-list.txt
|
||||
@@ -198,13 +198,13 @@ jobs:
|
||||
|
||||
- name: Use a different commit SHA
|
||||
id: changed-files-custom-sha
|
||||
uses: tj-actions/changed-files@v1.1.0
|
||||
uses: tj-actions/changed-files@v1.1.1
|
||||
with:
|
||||
sha: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Use a different base SHA
|
||||
id: changed-files-custom-base-sha
|
||||
uses: tj-actions/changed-files@v1.1.0
|
||||
uses: tj-actions/changed-files@v1.1.1
|
||||
with:
|
||||
base_sha: "2096ed0"
|
||||
|
||||
@@ -216,7 +216,7 @@ jobs:
|
||||
|
||||
- name: Run changed-files with defaults on the dir1
|
||||
id: changed-files-for-subfolder
|
||||
uses: tj-actions/changed-files@v1.1.0
|
||||
uses: tj-actions/changed-files@v1.1.1
|
||||
with:
|
||||
path: subfolder
|
||||
```
|
||||
@@ -232,7 +232,7 @@ jobs:
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v1.1.0
|
||||
uses: tj-actions/changed-files@v1.1.1
|
||||
|
||||
- name: Pre-commit
|
||||
uses: pre-commit/action@v2.0.0
|
||||
|
||||
@@ -155,7 +155,7 @@ else
|
||||
|
||||
OTHER_DELETED_FILES=$(echo "${OTHER_DELETED_FILES_ARRAY[*]}" | tr " " "\n" | sort -u | awk -v d="$INPUT_SEPARATOR" '{s=(NR==1?s:s d)$0}END{print s}')
|
||||
|
||||
echo "Matching modified files: ${UNIQUE_DELETED_FILES_ARRAY[*]}"
|
||||
echo "Matching deleted files: ${UNIQUE_DELETED_FILES_ARRAY[*]}"
|
||||
|
||||
if [[ -n "${UNIQUE_DELETED_FILES_ARRAY[*]}" ]]; then
|
||||
echo "::set-output name=any_deleted::true"
|
||||
@@ -164,7 +164,7 @@ else
|
||||
fi
|
||||
|
||||
if [[ -n "${OTHER_DELETED_FILES_ARRAY[*]}" ]]; then
|
||||
echo "Non Matching modified files: ${OTHER_DELETED_FILES_ARRAY[*]}"
|
||||
echo "Non Matching deleted files: ${OTHER_DELETED_FILES_ARRAY[*]}"
|
||||
echo "::set-output name=only_deleted::false"
|
||||
echo "::set-output name=other_deleted_files::$OTHER_DELETED_FILES"
|
||||
elif [[ -n "${UNIQUE_DELETED_FILES_ARRAY[*]}" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user