Compare commits

..

3 Commits
v9.3 ... v1.0.0

Author SHA1 Message Date
Tonye Jack
f0751de6af Added version warning 2022-02-17 00:12:45 -05:00
Tonye Jack
b80d9cca04 Fix persisting origin URL (#159) 2021-08-17 20:03:07 -04:00
Tonye Jack
2f8c46f9d7 Upgraded to v9.3 (#157)
Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
2021-08-09 09:04:17 -04:00
3 changed files with 29 additions and 19 deletions

View File

@@ -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:**

View File

@@ -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

View File

@@ -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"