Compare commits

...

8 Commits

Author SHA1 Message Date
Tonye Jack
2a8a501ad6 Updated separator 2022-02-16 22:59:18 -05:00
Tonye Jack
e7d271c9e1 Upgraded to v4.0.4 (#347)
Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
2022-02-07 22:56:34 -05:00
Tonye Jack
cc2d4600d8 Update README.md 2022-02-07 22:53:49 -05:00
Tonye Jack
830658002d chore: expose internal files-separator input (#346) 2022-02-07 22:52:51 -05:00
Tonye Jack
b06e69da6c Update README.md 2022-02-03 14:15:41 -05:00
Tonye Jack
2d12c2d5c8 Update README.md 2022-02-02 16:09:18 -05:00
Tonye Jack
711d42d763 Upgraded to v14.3 (#343)
Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
2022-02-01 22:38:54 -05:00
Tonye Jack
5acfa350b7 Upgraded to v4.0.3 (#342)
Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
2022-02-01 22:32:50 -05:00
3 changed files with 67 additions and 33 deletions

View File

@@ -1,5 +1,41 @@
# Changelog
## [v4.0.4](https://github.com/tj-actions/changed-files/tree/v4.0.4) (2022-02-08)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v14.3...v4.0.4)
**Fixed bugs:**
- \[BUG\] Files detected as changed that are not part of PR [\#345](https://github.com/tj-actions/changed-files/issues/345)
**Merged pull requests:**
- chore: expose internal files-separator input [\#346](https://github.com/tj-actions/changed-files/pull/346) ([jackton1](https://github.com/jackton1))
- Upgraded to v14.3 [\#343](https://github.com/tj-actions/changed-files/pull/343) ([jackton1](https://github.com/jackton1))
## [v14.3](https://github.com/tj-actions/changed-files/tree/v14.3) (2022-02-02)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v4.0.3...v14.3)
**Merged pull requests:**
- Upgraded to v4.0.3 [\#342](https://github.com/tj-actions/changed-files/pull/342) ([jackton1](https://github.com/jackton1))
## [v4.0.3](https://github.com/tj-actions/changed-files/tree/v4.0.3) (2022-02-02)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v14.2...v4.0.3)
**Fixed bugs:**
- \[BUG\] Action flips forward slash into backslash resulting in match failure. [\#340](https://github.com/tj-actions/changed-files/issues/340)
- \[BUG\] Getting Error: `uses:` keyword is not currently supported when using above 12.2 version [\#333](https://github.com/tj-actions/changed-files/issues/333)
- \[BUG\] Investigate possible bug using since\_last\_remote\_commit when force pushing changes. [\#303](https://github.com/tj-actions/changed-files/issues/303)
**Merged pull requests:**
- fix: resolve bug with pattern matching on windows [\#341](https://github.com/tj-actions/changed-files/pull/341) ([jackton1](https://github.com/jackton1))
- Upgraded to v14.2 [\#339](https://github.com/tj-actions/changed-files/pull/339) ([jackton1](https://github.com/jackton1))
## [v14.2](https://github.com/tj-actions/changed-files/tree/v14.2) (2022-02-01)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v4.0.2...v14.2)
@@ -67,7 +103,7 @@
## [v3.0.2](https://github.com/tj-actions/changed-files/tree/v3.0.2) (2022-01-25)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v13.1...v3.0.2)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v3.0.1...v3.0.2)
**Fixed bugs:**
@@ -85,13 +121,13 @@
- Upgraded to v13.1 [\#316](https://github.com/tj-actions/changed-files/pull/316) ([jackton1](https://github.com/jackton1))
- Upgraded to v3.0.1 [\#315](https://github.com/tj-actions/changed-files/pull/315) ([jackton1](https://github.com/jackton1))
## [v13.1](https://github.com/tj-actions/changed-files/tree/v13.1) (2022-01-09)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v3.0.1...v13.1)
## [v3.0.1](https://github.com/tj-actions/changed-files/tree/v3.0.1) (2022-01-09)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v3.0.0...v3.0.1)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v13.1...v3.0.1)
## [v13.1](https://github.com/tj-actions/changed-files/tree/v13.1) (2022-01-09)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v3.0.0...v13.1)
**Closed issues:**
@@ -116,7 +152,7 @@
## [v13](https://github.com/tj-actions/changed-files/tree/v13) (2022-01-05)
[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:**
@@ -134,13 +170,13 @@
- Upgraded to v2.0.1 [\#298](https://github.com/tj-actions/changed-files/pull/298) ([jackton1](https://github.com/jackton1))
- Upgraded to v12.2 [\#297](https://github.com/tj-actions/changed-files/pull/297) ([jackton1](https://github.com/jackton1))
## [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:**

View File

@@ -21,8 +21,9 @@ Retrieve all changed files relative to the default branch (`pull_request*` based
* Easy to debug.
* Boolean output indicating that certain files have been changed.
* Multiple repositories support.
* Runs on self hosted runners.
* GitHub Enterprise Server support.
* [GitHub-hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners) support
* [GitHub Enterprise Server](https://docs.github.com/en/enterprise-server@3.3/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server) support.
* [self-hosted runners](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners) support.
* Monorepos (Fetches only the last remote commit).
* Supports all platforms (Linux, MacOS, Windows).
* List all files that have changed.
@@ -64,7 +65,7 @@ jobs:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v14.2
uses: tj-actions/changed-files@v4.0.4
- name: List all changed files
run: |
@@ -126,6 +127,7 @@ Support this project with a :star:
| 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` | `true` | `' '` | Output string separator |
| files | `string` OR `string[]` | `false` | | Check for changes <br> using only these <br> list of file(s) <br> (Defaults to the <br> entire repo) |
| files-separator | string | false | `'\n'` | Separator used to split the<br>files input |
| base\_sha | `string` | `false` | | Specify a different <br> base commit SHA <br> used for <br> comparing changes |
| sha | `string` | `true` | `${{ github.sha }}` | Specify a different <br> commit SHA <br> used for <br> comparing changes |
| files\_from\_source\_file | `string` | `false` | | Source file <br> used to populate <br> the files input |
@@ -141,11 +143,11 @@ Support this project with a :star:
- name: Get changed files using defaults
id: changed-files
uses: tj-actions/changed-files@v14.2
uses: tj-actions/changed-files@v4.0.4
- name: Get changed files using a comma separator
id: changed-files-comma
uses: tj-actions/changed-files@v14.2
uses: tj-actions/changed-files@v4.0.4
with:
separator: ","
@@ -167,7 +169,7 @@ Support this project with a :star:
- name: Get specific changed files
id: changed-files-specific
uses: tj-actions/changed-files@v14.2
uses: tj-actions/changed-files@v4.0.4
with:
files: |
my-file.txt
@@ -206,14 +208,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@v14.2
uses: tj-actions/changed-files@v4.0.4
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@v14.2
uses: tj-actions/changed-files@v4.0.4
with:
files_from_source_file: |
test/changed-files-list.txt
@@ -222,13 +224,13 @@ Support this project with a :star:
- name: Use a different commit SHA
id: changed-files-custom-sha
uses: tj-actions/changed-files@v14.2
uses: tj-actions/changed-files@v4.0.4
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@v14.2
uses: tj-actions/changed-files@v4.0.4
with:
base_sha: "2096ed0"
@@ -240,7 +242,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@v14.2
uses: tj-actions/changed-files@v4.0.4
with:
path: dir1
@@ -252,7 +254,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@v14.2
uses: tj-actions/changed-files@v4.0.4
with:
since_last_remote_commit: "true"
@@ -270,14 +272,6 @@ Support this project with a :star:
> * However, this action will handle spaces in file names, with a recommendation of using a separator to prevent hidden issues.
> ![Screen Shot 2021-10-23 at 9 37 34 AM](https://user-images.githubusercontent.com/17484350/138558767-b13c90bf-a1ae-4e86-9520-70a6a4624f41.png)
## Compatibility
| Runner | Supported version |
|--------------------------|-----------------------|
| [GitHub-hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners) | `v14.2` |
| [GitHub Enterprise Server](https://docs.github.com/en/enterprise-server@3.3/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server) | `v14.2` |
| [self-hosted runners](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners) | `v12.2` & `v2.0.1` |
## Credits
This package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter).

View File

@@ -19,6 +19,10 @@ inputs:
description: 'Check for changes using only this list of files (Defaults to the entire repo)'
required: false
default: ""
files-separator:
description: 'Separator used to split the files input'
default: "\n"
required: false
sha:
description: 'Specify a current commit SHA used for comparing changes'
required: true
@@ -117,7 +121,7 @@ runs:
id: glob
with:
files: ${{ inputs.files }}
files-separator: " "
files-separator: ${{ inputs.files-separator }}
files-from-source-file: ${{ inputs.files_from_source_file }}
separator: "|"
- run: |