Compare commits

...

2 Commits
v11.2 ... v11.3

Author SHA1 Message Date
Tonye Jack
902e607379 [Security]: Prevent persisting the remote when there are errors (#232) 2021-10-27 07:30:47 -04:00
Tonye Jack
29558f2ca4 Upgraded from v11.1 -> v11.2 (#231)
Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
2021-10-26 12:23:05 -04:00
3 changed files with 29 additions and 11 deletions

View File

@@ -2,12 +2,27 @@
## [Unreleased](https://github.com/tj-actions/changed-files/tree/HEAD)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.1...HEAD)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.2...HEAD)
**Fixed bugs:**
- \[BUG\] Changed files not working on self hosted runners [\#227](https://github.com/tj-actions/changed-files/issues/227)
## [v11.2](https://github.com/tj-actions/changed-files/tree/v11.2) (2021-10-26)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.1...v11.2)
**Implemented enhancements:**
- \[Feature\] fetch HEAD without tags [\#220](https://github.com/tj-actions/changed-files/issues/220)
**Merged pull requests:**
- Resolved bug with already existing remote [\#230](https://github.com/tj-actions/changed-files/pull/230) ([jackton1](https://github.com/jackton1))
- Revert "bug/fix error with already existing remote" [\#229](https://github.com/tj-actions/changed-files/pull/229) ([jackton1](https://github.com/jackton1))
- bug/fix error with already existing remote [\#228](https://github.com/tj-actions/changed-files/pull/228) ([jackton1](https://github.com/jackton1))
- Upgraded to v11.1 [\#226](https://github.com/tj-actions/changed-files/pull/226) ([jackton1](https://github.com/jackton1))
## [v11.1](https://github.com/tj-actions/changed-files/tree/v11.1) (2021-10-25)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11...v11.1)

View File

@@ -59,7 +59,7 @@ jobs:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v11.1
uses: tj-actions/changed-files@v11.2
- name: List all modified files
run: |
@@ -121,11 +121,11 @@ jobs:
- name: Get changed files using defaults
id: changed-files
uses: tj-actions/changed-files@v11.1
uses: tj-actions/changed-files@v11.2
- name: Get changed files using a comma separator
id: changed-files-comma
uses: tj-actions/changed-files@v11.1
uses: tj-actions/changed-files@v11.2
with:
separator: ","
@@ -147,7 +147,7 @@ jobs:
- name: Get specific changed files
id: changed-files-specific
uses: tj-actions/changed-files@v11.1
uses: tj-actions/changed-files@v11.2
with:
files: |
my-file.txt
@@ -185,14 +185,14 @@ jobs:
- 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@v11.1
uses: tj-actions/changed-files@v11.2
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@v11.1
uses: tj-actions/changed-files@v11.2
with:
files_from_source_file: |
test/changed-files-list.txt
@@ -201,13 +201,13 @@ jobs:
- name: Use a different commit SHA
id: changed-files-custom-sha
uses: tj-actions/changed-files@v11.1
uses: tj-actions/changed-files@v11.2
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@v11.1
uses: tj-actions/changed-files@v11.2
with:
base_sha: "2096ed0"
@@ -219,7 +219,7 @@ jobs:
- name: Run changed-files with defaults on the dir1
id: changed-files-for-dir1
uses: tj-actions/changed-files@v11.1
uses: tj-actions/changed-files@v11.2
with:
path: dir1
@@ -241,7 +241,7 @@ jobs:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v11.1
uses: tj-actions/changed-files@v11.2
- name: Pre-commit
uses: pre-commit/action@v2.0.0

View File

@@ -39,6 +39,7 @@ fi
if [[ $exit_status -ne 0 ]]; then
echo "::warning::Unable to determine the current head sha"
git remote remove temp_changed_files
exit 1
fi
@@ -54,6 +55,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then
if [[ $exit_status -ne 0 ]]; then
echo "::warning::Unable to determine the previous commit sha"
echo "::warning::You seem to be missing 'fetch-depth: 0' or 'fetch-depth: 2'. See https://github.com/tj-actions/changed-files#usage"
git remote remove temp_changed_files
exit 1
fi
else
@@ -68,6 +70,7 @@ else
if [[ $exit_status -ne 0 ]]; then
echo "::warning::Unable to determine the base ref sha for ${TARGET_BRANCH}"
git remote remove temp_changed_files
exit 1
fi
fi