Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2216f65fd | ||
|
|
cc2d4600d8 | ||
|
|
830658002d | ||
|
|
b06e69da6c | ||
|
|
2d12c2d5c8 | ||
|
|
711d42d763 |
32
HISTORY.md
32
HISTORY.md
@@ -1,5 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
## [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)
|
||||
@@ -82,7 +90,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:**
|
||||
|
||||
@@ -100,13 +108,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:**
|
||||
|
||||
@@ -305,7 +313,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:**
|
||||
|
||||
@@ -319,13 +327,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:**
|
||||
|
||||
|
||||
34
README.md
34
README.md
@@ -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@v4.0.3
|
||||
uses: tj-actions/changed-files@v14.3
|
||||
|
||||
- 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@v4.0.3
|
||||
uses: tj-actions/changed-files@v14.3
|
||||
|
||||
- name: Get changed files using a comma separator
|
||||
id: changed-files-comma
|
||||
uses: tj-actions/changed-files@v4.0.3
|
||||
uses: tj-actions/changed-files@v14.3
|
||||
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@v4.0.3
|
||||
uses: tj-actions/changed-files@v14.3
|
||||
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@v4.0.3
|
||||
uses: tj-actions/changed-files@v14.3
|
||||
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@v4.0.3
|
||||
uses: tj-actions/changed-files@v14.3
|
||||
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@v4.0.3
|
||||
uses: tj-actions/changed-files@v14.3
|
||||
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@v4.0.3
|
||||
uses: tj-actions/changed-files@v14.3
|
||||
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@v4.0.3
|
||||
uses: tj-actions/changed-files@v14.3
|
||||
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@v4.0.3
|
||||
uses: tj-actions/changed-files@v14.3
|
||||
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.
|
||||
> 
|
||||
|
||||
## 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).
|
||||
|
||||
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user