From 23c0e1a9b3c827f29926f4453ab153c41f93faa5 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 1 Nov 2022 15:33:17 -0600 Subject: [PATCH 1/8] chore: fixed typo. --- .github/workflows/update-readme.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml index 6d5d48d3..91db40f3 100644 --- a/.github/workflows/update-readme.yml +++ b/.github/workflows/update-readme.yml @@ -29,7 +29,7 @@ jobs: - name: README.md changed if: steps.verify_changed_files.outputs.files_changed == 'true' run: | - echo "README.md has uncommited changes" + echo "README.md has uncommitted changes" exit 1 - name: Create Pull Request From e92598caebc065f89ec98ca8be94f711f5a01b0b Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 2 Nov 2022 08:09:18 -0600 Subject: [PATCH 2/8] feat: pull initial history --- diff-sha.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/diff-sha.sh b/diff-sha.sh index f2ba2b87..e6324e23 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -155,9 +155,11 @@ else CURRENT_BRANCH=$GITHUB_HEAD_REF if [[ -z $INPUT_BASE_SHA ]]; then + git fetch --no-tags -u --progress --depth=30 origin "$TARGET_BRANCH":"$TARGET_BRANCH" PREVIOUS_SHA=$GITHUB_EVENT_PULL_REQUEST_BASE_SHA && exit_status=$? || exit_status=$? echo "::debug::Previous SHA: $PREVIOUS_SHA" else + git fetch --no-tags -u --progress --depth=30 origin "$INPUT_BASE_SHA" && exit_status=$? || exit_status=$? PREVIOUS_SHA=$INPUT_BASE_SHA && exit_status=$? || exit_status=$? fi From bc3236f03570ad4dacd2372444fbe7b98ccd6358 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 2 Nov 2022 08:28:18 -0600 Subject: [PATCH 3/8] chore: update test increase max-parallel --- .github/workflows/manual-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual-test.yml b/.github/workflows/manual-test.yml index e325ce50..420c507b 100644 --- a/.github/workflows/manual-test.yml +++ b/.github/workflows/manual-test.yml @@ -9,7 +9,7 @@ jobs: runs-on: ${{ matrix.platform }} strategy: fail-fast: false - max-parallel: 4 + max-parallel: 7 matrix: platform: [ubuntu-latest, ubuntu-22.04, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022] @@ -38,7 +38,7 @@ jobs: - name: Show output run: | echo '${{ toJSON(steps.changed-files-glob.outputs) }}' - + - name: Run changed-files with glob filtering and all_old_new_renamed_files id: changed-files-glob-all-old-new-renamed-files uses: ./ From f1bc8b08922ee0b12090f4e8702dddebe0ea39b6 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 2 Nov 2022 08:29:27 -0600 Subject: [PATCH 4/8] Update diff-sha.sh --- diff-sha.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diff-sha.sh b/diff-sha.sh index e6324e23..2f95d203 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -155,11 +155,11 @@ else CURRENT_BRANCH=$GITHUB_HEAD_REF if [[ -z $INPUT_BASE_SHA ]]; then - git fetch --no-tags -u --progress --depth=30 origin "$TARGET_BRANCH":"$TARGET_BRANCH" + git fetch --no-tags -u --progress --deepen=30 origin "$TARGET_BRANCH":"$TARGET_BRANCH" PREVIOUS_SHA=$GITHUB_EVENT_PULL_REQUEST_BASE_SHA && exit_status=$? || exit_status=$? echo "::debug::Previous SHA: $PREVIOUS_SHA" else - git fetch --no-tags -u --progress --depth=30 origin "$INPUT_BASE_SHA" && exit_status=$? || exit_status=$? + git fetch --no-tags -u --progress --deepen=30 origin "$INPUT_BASE_SHA" && exit_status=$? || exit_status=$? PREVIOUS_SHA=$INPUT_BASE_SHA && exit_status=$? || exit_status=$? fi From ed67b9caa44c8b0cfa2ab4dc84dbe215cf42d6ee Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 2 Nov 2022 09:12:51 -0600 Subject: [PATCH 5/8] feat: increase the default max_fetch_depth --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 4a5f8295..474c3328 100644 --- a/action.yml +++ b/action.yml @@ -80,7 +80,7 @@ inputs: max_fetch_depth: description: "Max limit for fetching branch history. **NOTE**: This can be adjusted to resolve errors with insufficient history." required: false - default: "140" + default: "300" outputs: added_files: From a4cabf6b61e210585ea0326de3b2bfae0ee912f4 Mon Sep 17 00:00:00 2001 From: jackton1 Date: Wed, 2 Nov 2022 15:34:50 +0000 Subject: [PATCH 6/8] Updated README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d84da97e..4c84ac0d 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ Support this project with a :star: | files\_separator | string | false | `"\n"` | Separator used to split the
`files` input | | include\_all\_old\_new\_renamed\_files | string | false | `"false"` | Include `all_old_new_renamed_files` output. Note this
can generate a large output
See: [#501](https://github.com/tj-actions/changed-files/issues/501). | | json | string | false | `"false"` | Output list of changed files
in a JSON formatted string
which can be used for
matrix jobs. | -| max\_fetch\_depth | string | false | `"140"` | Max limit for fetching branch
history. **NOTE**: This can be
adjusted to resolve errors with
insufficient history. | +| max\_fetch\_depth | string | false | `"300"` | Max limit for fetching branch
history. **NOTE**: This can be
adjusted to resolve errors with
insufficient history. | | old\_new\_files\_separator | string | false | `" "` | Split character for multiple old
and new filename pairs. | | old\_new\_separator | string | false | `","` | Split character for old and
new filename pairs. | | path | string | false | `"."` | Specify a relative path under
`$GITHUB_WORKSPACE` to locate the repository.
| From 9c4736bb17b57e13d702b3976259bb94bcfd87f3 Mon Sep 17 00:00:00 2001 From: jackton1 Date: Wed, 2 Nov 2022 15:39:50 +0000 Subject: [PATCH 7/8] Upgraded from v34.0.2 -> v34.0.3 --- HISTORY.md | 50 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index fd58d612..6d632c9d 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,12 +1,28 @@ # Changelog +## [v34.0.3](https://github.com/tj-actions/changed-files/tree/v34.0.3) (2022-11-02) + +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v34...v34.0.3) + +## [v34](https://github.com/tj-actions/changed-files/tree/v34) (2022-11-02) + +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v34.0.2...v34) + +**Implemented enhancements:** + +- Retrieve all changed files and directories relative to the last completed run of a GitHub Actions check [\#735](https://github.com/tj-actions/changed-files/issues/735) + +**Merged pull requests:** + +- chore: update test increase max-parallel [\#741](https://github.com/tj-actions/changed-files/pull/741) ([jackton1](https://github.com/jackton1)) +- feat: pull initial history when using the default fetch-depth [\#740](https://github.com/tj-actions/changed-files/pull/740) ([jackton1](https://github.com/jackton1)) +- chore: fixed typo. [\#739](https://github.com/tj-actions/changed-files/pull/739) ([jackton1](https://github.com/jackton1)) +- chore: update test [\#738](https://github.com/tj-actions/changed-files/pull/738) ([jackton1](https://github.com/jackton1)) +- Upgraded to v34.0.2 [\#734](https://github.com/tj-actions/changed-files/pull/734) ([jackton1](https://github.com/jackton1)) + ## [v34.0.2](https://github.com/tj-actions/changed-files/tree/v34.0.2) (2022-10-31) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v34...v34.0.2) - -## [v34](https://github.com/tj-actions/changed-files/tree/v34) (2022-10-31) - -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v34.0.1...v34) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v34.0.1...v34.0.2) **Fixed bugs:** @@ -71,7 +87,7 @@ ## [v33](https://github.com/tj-actions/changed-files/tree/v33) (2022-10-21) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32.1.2...v33) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32...v33) **Closed issues:** @@ -90,13 +106,13 @@ - chore\(deps\): update tj-actions/verify-changed-files action to v12 [\#696](https://github.com/tj-actions/changed-files/pull/696) ([renovate[bot]](https://github.com/apps/renovate)) - Upgraded to v32.1.2 [\#695](https://github.com/tj-actions/changed-files/pull/695) ([jackton1](https://github.com/jackton1)) -## [v32.1.2](https://github.com/tj-actions/changed-files/tree/v32.1.2) (2022-10-16) - -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32...v32.1.2) - ## [v32](https://github.com/tj-actions/changed-files/tree/v32) (2022-10-16) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32.1.1...v32) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32.1.2...v32) + +## [v32.1.2](https://github.com/tj-actions/changed-files/tree/v32.1.2) (2022-10-16) + +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32.1.1...v32.1.2) **Fixed bugs:** @@ -209,7 +225,7 @@ ## [v31.0.0](https://github.com/tj-actions/changed-files/tree/v31.0.0) (2022-09-25) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v30.0.0...v31.0.0) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v30...v31.0.0) **Merged pull requests:** @@ -222,13 +238,13 @@ - chore: update broken link [\#642](https://github.com/tj-actions/changed-files/pull/642) ([jackton1](https://github.com/jackton1)) - Upgraded to v30.0.0 [\#641](https://github.com/tj-actions/changed-files/pull/641) ([jackton1](https://github.com/jackton1)) -## [v30.0.0](https://github.com/tj-actions/changed-files/tree/v30.0.0) (2022-09-24) - -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v30...v30.0.0) - ## [v30](https://github.com/tj-actions/changed-files/tree/v30) (2022-09-24) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29...v30) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v30.0.0...v30) + +## [v30.0.0](https://github.com/tj-actions/changed-files/tree/v30.0.0) (2022-09-24) + +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29...v30.0.0) **Fixed bugs:** From 368551a1335678087a984fff983a66d3993b4ff0 Mon Sep 17 00:00:00 2001 From: jackton1 Date: Wed, 2 Nov 2022 16:39:50 +0000 Subject: [PATCH 8/8] Upgraded from v34.0.3 -> v34.0.4 --- HISTORY.md | 79 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 46 insertions(+), 33 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 6d632c9d..eb802226 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,12 +1,25 @@ # Changelog -## [v34.0.3](https://github.com/tj-actions/changed-files/tree/v34.0.3) (2022-11-02) +## [v34.0.4](https://github.com/tj-actions/changed-files/tree/v34.0.4) (2022-11-02) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v34...v34.0.3) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v34...v34.0.4) ## [v34](https://github.com/tj-actions/changed-files/tree/v34) (2022-11-02) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v34.0.2...v34) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v34.0.3...v34) + +**Fixed bugs:** + +- \[BUG\] Action failing on PR with "Unable to find merge-base in shallow clone" [\#737](https://github.com/tj-actions/changed-files/issues/737) + +**Merged pull requests:** + +- Updated README.md [\#743](https://github.com/tj-actions/changed-files/pull/743) ([jackton1](https://github.com/jackton1)) +- feat: increase the default max\_fetch\_depth [\#742](https://github.com/tj-actions/changed-files/pull/742) ([jackton1](https://github.com/jackton1)) + +## [v34.0.3](https://github.com/tj-actions/changed-files/tree/v34.0.3) (2022-11-02) + +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v34.0.2...v34.0.3) **Implemented enhancements:** @@ -68,7 +81,7 @@ ## [v34.0.0](https://github.com/tj-actions/changed-files/tree/v34.0.0) (2022-10-25) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v33.0.0...v34.0.0) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v33...v34.0.0) **Fixed bugs:** @@ -81,13 +94,13 @@ - feat: add support for fetching more history [\#709](https://github.com/tj-actions/changed-files/pull/709) ([jackton1](https://github.com/jackton1)) - Upgraded to v33.0.0 [\#707](https://github.com/tj-actions/changed-files/pull/707) ([jackton1](https://github.com/jackton1)) -## [v33.0.0](https://github.com/tj-actions/changed-files/tree/v33.0.0) (2022-10-21) - -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v33...v33.0.0) - ## [v33](https://github.com/tj-actions/changed-files/tree/v33) (2022-10-21) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32...v33) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v33.0.0...v33) + +## [v33.0.0](https://github.com/tj-actions/changed-files/tree/v33.0.0) (2022-10-21) + +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32...v33.0.0) **Closed issues:** @@ -244,7 +257,7 @@ ## [v30.0.0](https://github.com/tj-actions/changed-files/tree/v30.0.0) (2022-09-24) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29...v30.0.0) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29.0.9...v30) **Fixed bugs:** @@ -260,13 +273,13 @@ - chore\(deps\): update codacy/codacy-analysis-cli-action action to v4.2.0 [\#634](https://github.com/tj-actions/changed-files/pull/634) ([renovate[bot]](https://github.com/apps/renovate)) - Upgraded to v29.0.9 [\#633](https://github.com/tj-actions/changed-files/pull/633) ([jackton1](https://github.com/jackton1)) -## [v29](https://github.com/tj-actions/changed-files/tree/v29) (2022-09-20) - -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29.0.9...v29) - ## [v29.0.9](https://github.com/tj-actions/changed-files/tree/v29.0.9) (2022-09-20) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29.0.8...v29.0.9) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29...v29.0.9) + +## [v29](https://github.com/tj-actions/changed-files/tree/v29) (2022-09-20) + +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29.0.8...v29) **Implemented enhancements:** @@ -1125,7 +1138,7 @@ ## [v13](https://github.com/tj-actions/changed-files/tree/v13) (2022-02-17) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v12.2...v13) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v2.0.1...v13) **Implemented enhancements:** @@ -1144,13 +1157,13 @@ - \[BUG\] wrong result of any\_change output [\#314](https://github.com/tj-actions/changed-files/issues/314) - \[BUG\] Investigate possible bug using since\_last\_remote\_commit when force pushing changes. [\#303](https://github.com/tj-actions/changed-files/issues/303) -## [v12.2](https://github.com/tj-actions/changed-files/tree/v12.2) (2021-12-30) - -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v2.0.1...v12.2) - ## [v2.0.1](https://github.com/tj-actions/changed-files/tree/v2.0.1) (2021-12-30) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v12.1...v2.0.1) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v12.2...v2.0.1) + +## [v12.2](https://github.com/tj-actions/changed-files/tree/v12.2) (2021-12-30) + +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v12.1...v12.2) **Merged pull requests:** @@ -1191,7 +1204,7 @@ ## [v12](https://github.com/tj-actions/changed-files/tree/v12) (2021-12-14) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11...v12) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.9...v12) **Implemented enhancements:** @@ -1209,13 +1222,13 @@ - \[PR 1\]: Renamed all\_modified\_files to all\_changed\_files [\#283](https://github.com/tj-actions/changed-files/pull/283) ([jackton1](https://github.com/jackton1)) - Upgraded to v11.9 [\#280](https://github.com/tj-actions/changed-files/pull/280) ([jackton1](https://github.com/jackton1)) -## [v11](https://github.com/tj-actions/changed-files/tree/v11) (2021-12-04) - -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.9...v11) - ## [v11.9](https://github.com/tj-actions/changed-files/tree/v11.9) (2021-12-04) -[Full Changelog](https://github.com/tj-actions/changed-files/compare/v1.3.1...v11.9) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11...v11.9) + +## [v11](https://github.com/tj-actions/changed-files/tree/v11) (2021-12-04) + +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v1.3.1...v11) **Implemented enhancements:** @@ -1304,7 +1317,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/v1.2.0...v1.2.1) +[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.5...v1.2.1) **Implemented enhancements:** @@ -1318,13 +1331,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)) -## [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.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) +[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) **Merged pull requests:**