Compare commits

...

29 Commits

Author SHA1 Message Date
Tonye Jack
82edb42dc4 Merge pull request #603 from tj-actions/chore/remove-unused-input
chore: remove unused input
2022-08-28 22:13:57 -06:00
Tonye Jack
cbcaf86272 Update README.md 2022-08-28 13:58:08 -06:00
Tonye Jack
30ac0d5e30 chore: remove unused input 2022-08-28 13:54:28 -06:00
renovate[bot]
62f3ac4728 chore(deps): update tj-actions/branch-names action to v6 2022-08-27 10:56:02 -06:00
Tonye Jack
3491f60cd2 Update README.md 2022-08-26 17:02:42 -06:00
Tonye Jack
da64026a59 Merge pull request #601 from tj-actions/upgrade-to-v29.0.1 2022-08-25 23:49:04 -06:00
jackton1
06f041ee63 Upgraded from v29.0.0 -> v29.0.1 2022-08-26 05:47:06 +00:00
Tonye Jack
18edda7475 Merge pull request #600 from tj-actions/fix/bug-with-dir-names 2022-08-25 23:45:04 -06:00
Tonye Jack
0268ea521b Update entrypoint.sh 2022-08-25 23:34:13 -06:00
Tonye Jack
841d7d379c Update entrypoint.sh 2022-08-25 23:31:47 -06:00
Tonye Jack
b12ac5bdd5 Update action.yml 2022-08-25 23:25:39 -06:00
Tonye Jack
967b5466c0 Update entrypoint.sh 2022-08-25 23:25:09 -06:00
Tonye Jack
559d530325 debug the path output file 2022-08-25 22:14:40 -06:00
Tonye Jack
b1929916fa fixed bug with pattern matching. 2022-08-25 22:12:38 -06:00
Tonye Jack
646144ddf8 fixed bug with pattern matching. 2022-08-25 22:09:42 -06:00
Tonye Jack
1bf658c5ba debug the path output file 2022-08-25 21:53:36 -06:00
Tonye Jack
659d5814cd Merge branch 'main' into fix/bug-with-dir-names 2022-08-25 21:49:01 -06:00
Tonye Jack
6aa0ae3b2c fix: bug with dir name 2022-08-25 21:46:41 -06:00
Tonye Jack
a9c3a8135d Merge pull request #597 from tj-actions/upgrade-to-v29.0.0
Upgraded to v29.0.0
2022-08-23 08:57:34 -06:00
jackton1
baedfec11a Upgraded from v28.0.0 -> v29.0.0 2022-08-23 14:45:00 +00:00
Tonye Jack
bec82ebb34 Merge pull request #596 from tj-actions/chore/update-tj-actions-glob 2022-08-23 08:40:15 -06:00
Tonye Jack
88f751a23c chore(deps): update tj-actions/glob to v12 2022-08-23 07:53:28 -06:00
renovate[bot]
17288cdb41 chore(deps): update tj-actions/verify-changed-files action to v11 2022-08-23 04:44:40 -06:00
Tonye Jack
98c01d6558 Merge pull request #594 from tj-actions/chore/update-tj-actions-glob 2022-08-22 15:03:18 -06:00
Tonye Jack
4ae6f80c0f Update test.yml 2022-08-22 14:54:51 -06:00
Tonye Jack
22920e8d5d Update test.yml 2022-08-22 14:47:29 -06:00
Tonye Jack
5c03d2895c chore(deps): Update tj-actions/glob to v11.1 2022-08-22 14:24:59 -06:00
Tonye Jack
e185973ea9 Merge pull request #592 from tj-actions/upgrade-to-v28.0.0 2022-08-21 13:08:57 -06:00
jackton1
e75dfc6354 Upgraded from v28 -> v28.0.0 2022-08-21 19:08:16 +00:00
5 changed files with 87 additions and 46 deletions

View File

@@ -296,15 +296,25 @@ jobs:
id: changed-files-dir-names
uses: ./
with:
base_sha: d1c0ee4
sha: 4d04215
dir_names: "true"
- name: Show output
run: |
echo '${{ toJSON(steps.changed-files-dir-names.outputs) }}'
shell:
bash
- name: Check dir_names output
if: "!contains(steps.changed-files-dir-names.outputs.all_changed_files, 'test')"
run: |
echo "Invalid output: Expected to include (test) got (${{ steps.changed-files-dir-names.outputs.all_changed_files }})"
exit 1
shell:
bash
- name: Run changed-files since 2022-08-19
id: changed-files-since
uses: ./
continue-on-error: true
with:
since: "2022-08-19"
- name: Show output
@@ -315,8 +325,9 @@ jobs:
- name: Run changed-files until 2022-08-20
id: changed-files-until
uses: ./
continue-on-error: true
with:
until: "2022-08-21"
until: "2022-08-20"
- name: Show output
run: |
echo '${{ toJSON(steps.changed-files-until.outputs) }}'
@@ -784,7 +795,7 @@ jobs:
bash
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v5
uses: tj-actions/branch-names@v6
if: github.event_name == 'pull_request'
- uses: nrwl/last-successful-commit-action@v1
id: last_successful_commit

View File

@@ -17,7 +17,7 @@ jobs:
uses: tj-actions/remark@v3
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v10
uses: tj-actions/verify-changed-files@v11
id: verify_changed_files
with:
files: |

View File

@@ -1,5 +1,46 @@
# Changelog
## [Unreleased](https://github.com/tj-actions/changed-files/tree/HEAD)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29.0.1...HEAD)
**Fixed bugs:**
- \[BUG\] dir\_names = true not returning directories with changed files [\#598](https://github.com/tj-actions/changed-files/issues/598)
## [v29.0.1](https://github.com/tj-actions/changed-files/tree/v29.0.1) (2022-08-26)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v29.0.0...v29.0.1)
**Merged pull requests:**
- fix: bug with dir name [\#600](https://github.com/tj-actions/changed-files/pull/600) ([jackton1](https://github.com/jackton1))
- Upgraded to v29.0.0 [\#597](https://github.com/tj-actions/changed-files/pull/597) ([jackton1](https://github.com/jackton1))
## [v29.0.0](https://github.com/tj-actions/changed-files/tree/v29.0.0) (2022-08-23)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v28.0.0...v29.0.0)
**Closed issues:**
- Dependency Dashboard [\#27](https://github.com/tj-actions/changed-files/issues/27)
**Merged pull requests:**
- chore\(deps\): update tj-actions/glob to v12 [\#596](https://github.com/tj-actions/changed-files/pull/596) ([jackton1](https://github.com/jackton1))
- chore\(deps\): update tj-actions/verify-changed-files action to v11 [\#595](https://github.com/tj-actions/changed-files/pull/595) ([renovate[bot]](https://github.com/apps/renovate))
- chore\(deps\): Update tj-actions/glob to v11.1 [\#594](https://github.com/tj-actions/changed-files/pull/594) ([jackton1](https://github.com/jackton1))
- Upgraded to v28.0.0 [\#592](https://github.com/tj-actions/changed-files/pull/592) ([jackton1](https://github.com/jackton1))
## [v28.0.0](https://github.com/tj-actions/changed-files/tree/v28.0.0) (2022-08-21)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v28...v28.0.0)
**Merged pull requests:**
- chore: update readme [\#591](https://github.com/tj-actions/changed-files/pull/591) ([jackton1](https://github.com/jackton1))
- Upgraded to v28 [\#589](https://github.com/tj-actions/changed-files/pull/589) ([jackton1](https://github.com/jackton1))
## [v28](https://github.com/tj-actions/changed-files/tree/v28) (2022-08-21)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v27...v28)
@@ -13,10 +54,6 @@
- \[BUG\] changes based on last remote commit fail after rebasing [\#546](https://github.com/tj-actions/changed-files/issues/546)
**Closed issues:**
- Dependency Dashboard [\#27](https://github.com/tj-actions/changed-files/issues/27)
**Merged pull requests:**
- feat: add support for using time based filtering. [\#588](https://github.com/tj-actions/changed-files/pull/588) ([jackton1](https://github.com/jackton1))
@@ -723,7 +760,7 @@
## [v13](https://github.com/tj-actions/changed-files/tree/v13) (2022-02-17)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v2.0.1...v13)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v12.2...v13)
**Implemented enhancements:**
@@ -742,13 +779,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)
## [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.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)
[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)
**Merged pull requests:**
@@ -1310,7 +1347,7 @@
## [v7](https://github.com/tj-actions/changed-files/tree/v7) (2021-06-09)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6...v7)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6.3...v7)
**Closed issues:**
@@ -1326,13 +1363,13 @@
- Update tj-actions/sync-release-version action to v8.7 [\#86](https://github.com/tj-actions/changed-files/pull/86) ([renovate[bot]](https://github.com/apps/renovate))
- Upgraded to v6.3 [\#85](https://github.com/tj-actions/changed-files/pull/85) ([jackton1](https://github.com/jackton1))
## [v6](https://github.com/tj-actions/changed-files/tree/v6) (2021-05-26)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6.3...v6)
## [v6.3](https://github.com/tj-actions/changed-files/tree/v6.3) (2021-05-26)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6.2...v6.3)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6...v6.3)
## [v6](https://github.com/tj-actions/changed-files/tree/v6) (2021-05-26)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6.2...v6)
**Merged pull requests:**

View File

@@ -44,7 +44,6 @@ Retrieve all changed files and directories relative to the target branch (`pull_
> NOTE: :warning:
>
> * **IMPORTANT:** For `push` events you need to include `fetch-depth: 0` **OR** `fetch-depth: 2` depending on your use case.
> * When using `persist-credentials: false` with `actions/checkout@v3` you'll need to specify a `token` using the `token` input.
> * For monorepos where pulling all the branch history might not be desired, you can omit `fetch-depth` for `pull_request` events.
> * For files located in a sub-directory ensure that the pattern specified contains `**/` (globstar) to match any preceding directories or explicitly pass the full path relative to the project root. See: [#314](https://github.com/tj-actions/changed-files/issues/314).
@@ -70,7 +69,7 @@ jobs:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
- name: List all changed files
run: |
@@ -130,7 +129,6 @@ Support this project with a :star:
| Input | type | required | default | description |
|:--------------------------------------:|:----------------------:|:--------:|:---------------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| token | `string` | `false` | `${{ github.token }}` | [GITHUB\_TOKEN](https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#using-the-github_token-in-a-workflow) <br /> or a repo scoped <br /> [Personal Access Token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) |
| separator | `string` | `false` | `' '` | Split character for output strings |
| include\_all\_old\_new\_renamed\_files | `boolean` | `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). |
| old\_new\_separator | `string` | `false` | `','` | Split character for old and new filename pairs |
@@ -165,11 +163,11 @@ Support this project with a :star:
- name: Get changed files using defaults
id: changed-files
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
- name: Get changed files using a comma separator
id: changed-files-comma
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
with:
separator: ","
@@ -191,7 +189,7 @@ Support this project with a :star:
- name: Get specific changed files
id: changed-files-specific
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
with:
files: |
my-file.txt
@@ -232,14 +230,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@v28
uses: tj-actions/changed-files@v29.0.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@v28
uses: tj-actions/changed-files@v29.0.1
with:
files_from_source_file: |
test/changed-files-list.txt
@@ -248,15 +246,15 @@ Support this project with a :star:
- name: Use a different commit SHA
id: changed-files-custom-sha
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.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@v28
uses: tj-actions/changed-files@v29.0.1
with:
base_sha: "2096ed0"
base_sha: ${{ github.event.pull_request.base.sha }}
- name: Checkout into dir1
uses: actions/checkout@v3
@@ -266,7 +264,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@v28
uses: tj-actions/changed-files@v29.0.1
with:
path: dir1
@@ -278,19 +276,19 @@ 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@v28
uses: tj-actions/changed-files@v29.0.1
with:
since_last_remote_commit: "true"
- name: Run changed-files using the fork point of a pull request
id: changed-files-fork-point
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
with:
use_fork_point: "true"
- name: Run changed-files with quotepath disabled
id: changed-files-quotepath
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
with:
quotepath: "false"
@@ -312,7 +310,7 @@ Support this project with a :star:
- name: Run changed-files with the commit of the last successful test workflow run
id: changed-files-base-sha-push
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
with:
base_sha: ${{ steps.last_successful_commit_push.outputs.commit_hash }}
@@ -333,32 +331,32 @@ Support this project with a :star:
- name: Run changed-files with the commit of the last successful test workflow run on main
if: github.event_name == 'pull_request'
id: changed-files-base-sha-pull-request
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
with:
base_sha: ${{ steps.last_successful_commit_pull_request.outputs.commit_hash }}
- name: Run changed-files with dir_names
id: changed-files-dir-names
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
with:
dir_names: "true"
# All outputs are JSON formatted arrays and can be used in other actions and matrix compatible jobs.
- name: Run changed-files with json output
id: changed-files-json
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
with:
json: "true"
- name: Run changed-files since 2022-08-19
id: changed-files-since
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
with:
since: "2022-08-19"
- name: Run changed-files until 2022-08-20
id: changed-files-until
uses: tj-actions/changed-files@v28
uses: tj-actions/changed-files@v29.0.1
with:
until: "2022-08-20"
```

View File

@@ -3,10 +3,6 @@ description: Get all Added, Copied, Modified, Deleted, Renamed, Type changed, Un
author: tj-actions
inputs:
token:
description: "Github token"
required: false
default: ${{ github.token }}
separator:
description: "Split character for output strings"
required: false
@@ -199,11 +195,10 @@ runs:
# https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611
INPUT_SHA: ${{ steps.sha.outputs.sha }}
INPUT_BASE_SHA: ${{ steps.base-sha.outputs.base_sha }}
INPUT_TOKEN: ${{ inputs.token }}
INPUT_PATH: ${{ inputs.path }}
INPUT_USE_FORK_POINT: ${{ inputs.use_fork_point }}
- name: Glob match
uses: tj-actions/glob@v10
uses: tj-actions/glob@v13
id: glob
with:
files: ${{ inputs.files }}