Skip to content

Commit

Permalink
Merge branch 'main' into fix/including-changed-files-from-merge-commits
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Nov 2, 2022
2 parents 5716894 + 58b52f3 commit 3fa5a82
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 43 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/manual-test.yml
Expand Up @@ -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]

Expand Down Expand Up @@ -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: ./
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-readme.yml
Expand Up @@ -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
Expand Down
103 changes: 66 additions & 37 deletions HISTORY.md
@@ -1,12 +1,41 @@
# Changelog

## [v34.0.2](https://github.com/tj-actions/changed-files/tree/v34.0.2) (2022-10-31)
## [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.2)
[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-10-31)
## [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.1...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:**

- 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.0.1...v34.0.2)

**Fixed bugs:**

Expand Down Expand Up @@ -52,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:**

Expand All @@ -65,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)
## [v33](https://github.com/tj-actions/changed-files/tree/v33) (2022-10-21)

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v33...v33.0.0)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v33.0.0...v33)

## [v33](https://github.com/tj-actions/changed-files/tree/v33) (2022-10-21)
## [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.1.2...v33)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32...v33.0.0)

**Closed issues:**

Expand All @@ -90,13 +119,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)
## [v32](https://github.com/tj-actions/changed-files/tree/v32) (2022-10-16)

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32...v32.1.2)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32.1.2...v32)

## [v32](https://github.com/tj-actions/changed-files/tree/v32) (2022-10-16)
## [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)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v32.1.1...v32.1.2)

**Fixed bugs:**

Expand Down Expand Up @@ -209,7 +238,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:**

Expand All @@ -222,13 +251,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)
## [v30](https://github.com/tj-actions/changed-files/tree/v30) (2022-09-24)

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v30...v30.0.0)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v30.0.0...v30)

## [v30](https://github.com/tj-actions/changed-files/tree/v30) (2022-09-24)
## [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)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29.0.9...v30)

**Fixed bugs:**

Expand All @@ -244,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)
## [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.9...v29)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29...v29.0.9)

## [v29.0.9](https://github.com/tj-actions/changed-files/tree/v29.0.9) (2022-09-20)
## [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.0.9)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29.0.8...v29)

**Implemented enhancements:**

Expand Down Expand Up @@ -1109,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:**

Expand All @@ -1128,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)
## [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/v2.0.1...v12.2)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v12.2...v2.0.1)

## [v2.0.1](https://github.com/tj-actions/changed-files/tree/v2.0.1) (2021-12-30)
## [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...v2.0.1)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v12.1...v12.2)

**Merged pull requests:**

Expand Down Expand Up @@ -1175,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:**

Expand All @@ -1193,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)
## [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/v11.9...v11)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11...v11.9)

## [v11.9](https://github.com/tj-actions/changed-files/tree/v11.9) (2021-12-04)
## [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.9)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v1.3.1...v11)

**Implemented enhancements:**

Expand Down Expand Up @@ -1288,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:**

Expand All @@ -1302,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)
## [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.5...v1.2.0)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v1.2.0...v11.5)

## [v11.5](https://github.com/tj-actions/changed-files/tree/v11.5) (2021-10-30)
## [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...v11.5)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.4...v1.2.0)

**Merged pull requests:**

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -164,7 +164,7 @@ Support this project with a :star:
| files\_separator | string | false | `"\n"` | Separator used to split the<br>`files` input |
| include\_all\_old\_new\_renamed\_files | string | false | `"false"` | Include `all_old_new_renamed_files` output. Note this<br>can generate a large output<br>See: [#501](https://github.com/tj-actions/changed-files/issues/501). |
| json | string | false | `"false"` | Output list of changed files<br>in a JSON formatted string<br>which can be used for<br>matrix jobs. |
| max\_fetch\_depth | string | false | `"140"` | Max limit for fetching branch<br>history. **NOTE**: This can be<br>adjusted to resolve errors with<br>insufficient history. |
| max\_fetch\_depth | string | false | `"300"` | Max limit for fetching branch<br>history. **NOTE**: This can be<br>adjusted to resolve errors with<br>insufficient history. |
| old\_new\_files\_separator | string | false | `" "` | Split character for multiple old<br>and new filename pairs. |
| old\_new\_separator | string | false | `","` | Split character for old and<br>new filename pairs. |
| path | string | false | `"."` | Specify a relative path under<br>`$GITHUB_WORKSPACE` to locate the repository.<br> |
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion diff-sha.sh
Expand Up @@ -157,14 +157,16 @@ else
CURRENT_BRANCH=$GITHUB_HEAD_REF

if [[ -z $INPUT_BASE_SHA ]]; then
PREVIOUS_SHA=$(git rev-list --no-merges -n 1 "$TARGET_BRANCH" 2>&1) && exit_status=$? || exit_status=$?
git fetch --no-tags -u --progress --deepen=30 origin "$TARGET_BRANCH":"$TARGET_BRANCH"

PREVIOUS_SHA=$(git rev-list --no-merges -n 1 "$TARGET_BRANCH" 2>&1) && exit_status=$? || exit_status=$?
if [[ -z "$PREVIOUS_SHA" ]]; then
PREVIOUS_SHA=$GITHUB_EVENT_PULL_REQUEST_BASE_SHA && exit_status=$? || exit_status=$?
fi

echo "::debug::Previous SHA: $PREVIOUS_SHA"
else
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

Expand Down

0 comments on commit 3fa5a82

Please sign in to comment.