Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0751de6af | ||
|
|
b80d9cca04 | ||
|
|
2f8c46f9d7 |
22
HISTORY.md
22
HISTORY.md
@@ -1,13 +1,19 @@
|
||||
# Changelog
|
||||
|
||||
## [Unreleased](https://github.com/tj-actions/changed-files/tree/HEAD)
|
||||
## [v9.3](https://github.com/tj-actions/changed-files/tree/v9.3) (2021-08-09)
|
||||
|
||||
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v9.2...HEAD)
|
||||
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v9.2...v9.3)
|
||||
|
||||
**Fixed bugs:**
|
||||
|
||||
- \[BUG\] `all_modified_files` show deleted files [\#155](https://github.com/tj-actions/changed-files/issues/155)
|
||||
- \[BUG\] Dedupe the output list of changed files [\#151](https://github.com/tj-actions/changed-files/issues/151)
|
||||
|
||||
**Merged pull requests:**
|
||||
|
||||
- Remove deleted files from the all\_modified\_files output [\#156](https://github.com/tj-actions/changed-files/pull/156) ([jackton1](https://github.com/jackton1))
|
||||
- Upgraded to v9.2 [\#154](https://github.com/tj-actions/changed-files/pull/154) ([jackton1](https://github.com/jackton1))
|
||||
|
||||
## [v9.2](https://github.com/tj-actions/changed-files/tree/v9.2) (2021-08-06)
|
||||
|
||||
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v9.1...v9.2)
|
||||
@@ -182,7 +188,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:**
|
||||
|
||||
@@ -198,13 +204,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:**
|
||||
|
||||
|
||||
18
README.md
18
README.md
@@ -56,7 +56,7 @@ jobs:
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v9.2
|
||||
uses: tj-actions/changed-files@v9.3
|
||||
|
||||
- name: List all modified files
|
||||
run: |
|
||||
@@ -114,11 +114,11 @@ jobs:
|
||||
|
||||
- name: Get changed files using defaults
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v9.2
|
||||
uses: tj-actions/changed-files@v9.3
|
||||
|
||||
- name: Get changed files using a comma separator
|
||||
id: changed-files-comma
|
||||
uses: tj-actions/changed-files@v9.2
|
||||
uses: tj-actions/changed-files@v9.3
|
||||
with:
|
||||
separator: ","
|
||||
|
||||
@@ -140,7 +140,7 @@ jobs:
|
||||
|
||||
- name: Get specific changed files
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@v9.2
|
||||
uses: tj-actions/changed-files@v9.3
|
||||
with:
|
||||
files: |
|
||||
my-file.txt
|
||||
@@ -164,14 +164,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@v9.2
|
||||
uses: tj-actions/changed-files@v9.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@v9.2
|
||||
uses: tj-actions/changed-files@v9.3
|
||||
with:
|
||||
files_from_source_file: |
|
||||
test/changed-files-list.txt
|
||||
@@ -180,13 +180,13 @@ jobs:
|
||||
|
||||
- name: Use a different commit SHA
|
||||
id: changed-files-custom-sha
|
||||
uses: tj-actions/changed-files@v9.2
|
||||
uses: tj-actions/changed-files@v9.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@v9.2
|
||||
uses: tj-actions/changed-files@v9.3
|
||||
with:
|
||||
base_sha: "2096ed0"
|
||||
|
||||
@@ -203,7 +203,7 @@ jobs:
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v9.2
|
||||
uses: tj-actions/changed-files@v9.3
|
||||
|
||||
- name: Pre-commit
|
||||
uses: pre-commit/action@v2.0.0
|
||||
|
||||
@@ -2,9 +2,11 @@
|
||||
|
||||
set -e
|
||||
|
||||
echo "::warning::Legacy version detected, please switch to the recommended v10.x. See https://github.com/tj-actions/changed-files#versioning for more information"
|
||||
|
||||
echo "::group::changed-files"
|
||||
|
||||
git remote set-url origin "https://${INPUT_TOKEN}@github.com/${GITHUB_REPOSITORY}"
|
||||
git remote add temp_changed_files "https://${INPUT_TOKEN}@github.com/${GITHUB_REPOSITORY}"
|
||||
|
||||
echo "Getting HEAD info..."
|
||||
|
||||
@@ -36,7 +38,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then
|
||||
else
|
||||
TARGET_BRANCH=$GITHUB_BASE_REF
|
||||
CURRENT_BRANCH=$GITHUB_HEAD_REF
|
||||
git fetch origin "${TARGET_BRANCH}":"${TARGET_BRANCH}"
|
||||
git fetch temp_changed_files "${TARGET_BRANCH}":"${TARGET_BRANCH}"
|
||||
if [[ -z $INPUT_BASE_SHA ]]; then
|
||||
PREVIOUS_SHA=$(git rev-parse "${TARGET_BRANCH}" 2>&1) && exit_status=$? || exit_status=$?
|
||||
else
|
||||
@@ -162,6 +164,8 @@ if [[ -n "$UNIQUE_FILES" ]]; then
|
||||
|
||||
fi
|
||||
|
||||
git remote remove temp_changed_files
|
||||
|
||||
echo "::set-output name=added_files::$ADDED"
|
||||
echo "::set-output name=copied_files::$COPIED"
|
||||
echo "::set-output name=deleted_files::$DELETED"
|
||||
|
||||
Reference in New Issue
Block a user