Compare commits

...

4 Commits
v12 ... v2.0.0

Author SHA1 Message Date
Tonye Jack
9c1a181e67 Update README.md 2021-12-17 15:01:08 -05:00
Tonye Jack
b160683938 Update README.md 2021-12-17 15:00:14 -05:00
Tonye Jack
78b8e06a07 Update entrypoint.sh 2021-12-14 16:55:39 -05:00
Tonye Jack
8ddde738a5 Upgraded from v1.1.4 -> v12 (#287)
Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
2021-12-14 02:24:18 -05:00
3 changed files with 36 additions and 18 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## [v12](https://github.com/tj-actions/changed-files/tree/v12) (2021-12-14)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v1.1.4...v12)
**Merged pull requests:**
- Upgraded to v1.1.4 [\#286](https://github.com/tj-actions/changed-files/pull/286) ([jackton1](https://github.com/jackton1))
## [v1.1.4](https://github.com/tj-actions/changed-files/tree/v1.1.4) (2021-12-14)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.9...v1.1.4)
@@ -114,7 +122,7 @@
## [v1.2.1](https://github.com/tj-actions/changed-files/tree/v1.2.1) (2021-11-08)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.5...v1.2.1)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v1.2.0...v1.2.1)
**Implemented enhancements:**
@@ -128,13 +136,13 @@
- Update actions/checkout action to v2.4.0 [\#243](https://github.com/tj-actions/changed-files/pull/243) ([renovate[bot]](https://github.com/apps/renovate))
- Upgraded to v11.5 [\#241](https://github.com/tj-actions/changed-files/pull/241) ([jackton1](https://github.com/jackton1))
## [v11.5](https://github.com/tj-actions/changed-files/tree/v11.5) (2021-10-30)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v1.2.0...v11.5)
## [v1.2.0](https://github.com/tj-actions/changed-files/tree/v1.2.0) (2021-10-30)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.4...v1.2.0)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.5...v1.2.0)
## [v11.5](https://github.com/tj-actions/changed-files/tree/v11.5) (2021-10-30)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.4...v11.5)
**Merged pull requests:**

View File

@@ -33,6 +33,16 @@ Retrieve all changed files relative to the default branch (`pull_request*` based
* Report on files that have at least one change.
* [Regex pattern](https://www.gnu.org/software/grep/manual/grep.html#Regular-Expressions) matching on a subset of files.
> NOTE: :warning:
> * All users referencing the legacy `v1.x.x` version, are required to switch to `v*` or `v*.*` versioning semantic.
> * A breaking change was introduced in `v1.x.x` legacy version, which is no longer supported and future updates would only be made to `v*` or `v*.*`.
| Legacy version | Recommended version |
|---------------------|-----------------------|
| `v1.x.x` | `v12` |
## Usage
> NOTE: :warning:
@@ -63,7 +73,7 @@ jobs:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v1.1.4
uses: tj-actions/changed-files@v12
- name: List all changed files
run: |
@@ -140,11 +150,11 @@ Support this project with a :star:
- name: Get changed files using defaults
id: changed-files
uses: tj-actions/changed-files@v1.1.4
uses: tj-actions/changed-files@v12
- name: Get changed files using a comma separator
id: changed-files-comma
uses: tj-actions/changed-files@v1.1.4
uses: tj-actions/changed-files@v12
with:
separator: ","
@@ -166,7 +176,7 @@ Support this project with a :star:
- name: Get specific changed files
id: changed-files-specific
uses: tj-actions/changed-files@v1.1.4
uses: tj-actions/changed-files@v12
with:
files: |
my-file.txt
@@ -204,14 +214,14 @@ Support this project with a :star:
- 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.4
uses: tj-actions/changed-files@v12
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.4
uses: tj-actions/changed-files@v12
with:
files_from_source_file: |
test/changed-files-list.txt
@@ -220,13 +230,13 @@ Support this project with a :star:
- name: Use a different commit SHA
id: changed-files-custom-sha
uses: tj-actions/changed-files@v1.1.4
uses: tj-actions/changed-files@v12
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.4
uses: tj-actions/changed-files@v12
with:
base_sha: "2096ed0"
@@ -238,7 +248,7 @@ Support this project with a :star:
- name: Run changed-files with defaults on the dir1
id: changed-files-for-dir1
uses: tj-actions/changed-files@v1.1.4
uses: tj-actions/changed-files@v12
with:
path: dir1
@@ -250,7 +260,7 @@ Support this project with a :star:
- name: Run changed-files using the last commit on the remote branch
id: changed-files-since-last-remote-commit
uses: tj-actions/changed-files@v1.1.4
uses: tj-actions/changed-files@v12
with:
since_last_remote_commit: 'true'
@@ -267,7 +277,7 @@ Support this project with a :star:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v1.1.4
uses: tj-actions/changed-files@v12
- name: Pre-commit
uses: pre-commit/action@v2.0.0

View File

@@ -129,7 +129,7 @@ else
UNIQUE_ALL_CHANGED=$(echo "${UNIQUE_ALL_CHANGED}" | awk '{gsub(/\|/,"\n"); print $0;}' | awk -v d="$INPUT_SEPARATOR" '{s=(NR==1?s:s d)$0}END{print s}')
if [[ -n "${UNIQUE_ALL_CHANGED}" ]]; then
echo "Matching modified files: ${UNIQUE_ALL_CHANGED}"
echo "Matching changed files: ${UNIQUE_ALL_CHANGED}"
echo "::set-output name=any_changed::true"
else
echo "::set-output name=any_changed::false"