Compare commits
44 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6d456f542 | ||
|
|
059617dc0d | ||
|
|
b7c4b5161d | ||
|
|
55d7ed5032 | ||
|
|
9d6a865b9e | ||
|
|
b94562c2d4 | ||
|
|
ef211120a5 | ||
|
|
8a0500a5cb | ||
|
|
295aabe028 | ||
|
|
a59f800cbb | ||
|
|
5cf6e7a5be | ||
|
|
576594102a | ||
|
|
f4d8dc543f | ||
|
|
a2f1692a6f | ||
|
|
969e5d8dad | ||
|
|
a6c69ab0ca | ||
|
|
98112b163c | ||
|
|
a6cc85b4b6 | ||
|
|
6c238a972b | ||
|
|
72aab29255 | ||
|
|
6402474c46 | ||
|
|
469cc2b708 | ||
|
|
fdfc2d648c | ||
|
|
d7212b2954 | ||
|
|
513bb9920a | ||
|
|
f465da83c9 | ||
|
|
554fae61a8 | ||
|
|
7dfd007898 | ||
|
|
c12a6f5538 | ||
|
|
e35d0afdc1 | ||
|
|
842e57c994 | ||
|
|
909b045c81 | ||
|
|
9ed666d189 | ||
|
|
081ee9cc54 | ||
|
|
f6c1fe1c6c | ||
|
|
ec018be115 | ||
|
|
041d24051d | ||
|
|
1f30bd2085 | ||
|
|
9125e4d5da | ||
|
|
227e314ad8 | ||
|
|
2bf9c4d198 | ||
|
|
0f808a8de4 | ||
|
|
82b7c17c09 | ||
|
|
b476eb5054 |
2
.github/workflows/auto-merge.yml
vendored
2
.github/workflows/auto-merge.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
github.actor == 'renovate'
|
github.actor == 'renovate'
|
||||||
steps:
|
steps:
|
||||||
- name: automerge
|
- name: automerge
|
||||||
uses: pascalgn/automerge-action@v0.14.3
|
uses: pascalgn/automerge-action@v0.15.2
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
MERGE_METHOD: "rebase"
|
MERGE_METHOD: "rebase"
|
||||||
|
|||||||
2
.github/workflows/codacy-analysis.yml
vendored
2
.github/workflows/codacy-analysis.yml
vendored
@@ -44,6 +44,6 @@ jobs:
|
|||||||
|
|
||||||
# Upload the SARIF file generated in the previous step
|
# Upload the SARIF file generated in the previous step
|
||||||
- name: Upload SARIF results file
|
- name: Upload SARIF results file
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
|||||||
19
.github/workflows/label-conflict.yml
vendored
19
.github/workflows/label-conflict.yml
vendored
@@ -1,19 +0,0 @@
|
|||||||
name: "Maintenance"
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
types: [synchronize]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
main:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: check if prs are dirty
|
|
||||||
uses: eps1lon/actions-label-merge-conflict@releases/2.x
|
|
||||||
with:
|
|
||||||
dirtyLabel: "PR: needs rebase"
|
|
||||||
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request."
|
|
||||||
commentOnClean: "Conflicts have been resolved."
|
|
||||||
18
.github/workflows/rebase.yml
vendored
18
.github/workflows/rebase.yml
vendored
@@ -1,18 +0,0 @@
|
|||||||
name: Automatic Rebase
|
|
||||||
on:
|
|
||||||
issue_comment:
|
|
||||||
types: [created]
|
|
||||||
jobs:
|
|
||||||
rebase:
|
|
||||||
name: Rebase
|
|
||||||
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3.0.0
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
|
||||||
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
|
|
||||||
- name: Automatic Rebase
|
|
||||||
uses: cirrus-actions/rebase@1.5
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
|
||||||
2
.github/workflows/submodule-sync.yml
vendored
2
.github/workflows/submodule-sync.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
git submodule update --remote --recursive
|
git submodule update --remote --recursive
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v3.14.0
|
uses: peter-evans/create-pull-request@v4.0.2
|
||||||
with:
|
with:
|
||||||
title: "Updated submodule"
|
title: "Updated submodule"
|
||||||
branch: "chore/update-submodule"
|
branch: "chore/update-submodule"
|
||||||
|
|||||||
6
.github/workflows/sync-release-version.yml
vendored
6
.github/workflows/sync-release-version.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
update-version:
|
update-version:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.0.0
|
- uses: actions/checkout@v3.0.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Sync release version.
|
- name: Sync release version.
|
||||||
@@ -19,11 +19,11 @@ jobs:
|
|||||||
paths: |
|
paths: |
|
||||||
README.md
|
README.md
|
||||||
- name: Generate CHANGELOG
|
- name: Generate CHANGELOG
|
||||||
uses: tj-actions/github-changelog-generator@v1.12
|
uses: tj-actions/github-changelog-generator@v1.13
|
||||||
with:
|
with:
|
||||||
output: 'HISTORY.md'
|
output: 'HISTORY.md'
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v3.14.0
|
uses: peter-evans/create-pull-request@v4.0.2
|
||||||
with:
|
with:
|
||||||
base: "main"
|
base: "main"
|
||||||
title: "Upgraded to ${{ steps.sync-release-version.outputs.new_version }}"
|
title: "Upgraded to ${{ steps.sync-release-version.outputs.new_version }}"
|
||||||
|
|||||||
34
.github/workflows/test.yml
vendored
34
.github/workflows/test.yml
vendored
@@ -4,7 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- '**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
@@ -18,15 +17,16 @@ jobs:
|
|||||||
- name: Checkout to branch
|
- name: Checkout to branch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: shellcheck
|
- name: shellcheck
|
||||||
uses: reviewdog/action-shellcheck@v1.14
|
uses: reviewdog/action-shellcheck@v1.15
|
||||||
|
|
||||||
test-pull-requests-from-forks:
|
test-pull-requests-from-forks:
|
||||||
name: Test changed-files diff on pull_requests from forks
|
name: Test changed-files diff on pull_requests from forks
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
max-parallel: 4
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022, windows-2016]
|
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -64,8 +64,9 @@ jobs:
|
|||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
max-parallel: 4
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022, windows-2016]
|
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout into dir1
|
- name: Checkout into dir1
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -119,8 +120,9 @@ jobs:
|
|||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
max-parallel: 4
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022, windows-2016]
|
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout to branch
|
- name: Checkout to branch
|
||||||
@@ -158,8 +160,9 @@ jobs:
|
|||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
max-parallel: 4
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022, windows-2016]
|
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout to branch
|
- name: Checkout to branch
|
||||||
@@ -197,8 +200,9 @@ jobs:
|
|||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
max-parallel: 4
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022, windows-2016]
|
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -227,6 +231,16 @@ jobs:
|
|||||||
echo "Your README.md has been modified ${{ steps.changed-files.outputs.modified_files }}."
|
echo "Your README.md has been modified ${{ steps.changed-files.outputs.modified_files }}."
|
||||||
shell:
|
shell:
|
||||||
bash
|
bash
|
||||||
|
- name: Run changed-files with quotepath disabled
|
||||||
|
id: changed-files-quotepath
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
quotepath: "false"
|
||||||
|
- name: Show output
|
||||||
|
run: |
|
||||||
|
echo '${{ toJSON(steps.changed-files-quotepath.outputs) }}'
|
||||||
|
shell:
|
||||||
|
bash
|
||||||
- name: Run changed-files with forward slash separator
|
- name: Run changed-files with forward slash separator
|
||||||
id: changed-files-forward-slash
|
id: changed-files-forward-slash
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -513,7 +527,7 @@ jobs:
|
|||||||
test/changed-files-list.txt
|
test/changed-files-list.txt
|
||||||
test/changed-files-list.txt
|
test/changed-files-list.txt
|
||||||
files: |
|
files: |
|
||||||
**/workflows/rebase.yml
|
**/workflows/greetings.yml
|
||||||
- name: Check if a excluded file is not included in any_changed
|
- name: Check if a excluded file is not included in any_changed
|
||||||
if: contains(steps.changed-files-specific-source-file.outputs.all_changed_files, 'test/test/test.txt')
|
if: contains(steps.changed-files-specific-source-file.outputs.all_changed_files, 'test/test/test.txt')
|
||||||
run: |
|
run: |
|
||||||
@@ -526,7 +540,7 @@ jobs:
|
|||||||
(
|
(
|
||||||
!contains(steps.changed-files-specific-source-file.outputs.all_changed_files, 'action.yml') &&
|
!contains(steps.changed-files-specific-source-file.outputs.all_changed_files, 'action.yml') &&
|
||||||
!contains(steps.changed-files-specific-source-file.outputs.all_changed_files, '.github/workflows/test.yml') &&
|
!contains(steps.changed-files-specific-source-file.outputs.all_changed_files, '.github/workflows/test.yml') &&
|
||||||
!contains(steps.changed-files-specific-source-file.outputs.all_changed_files, '.github/workflows/rebase.yml') &&
|
!contains(steps.changed-files-specific-source-file.outputs.all_changed_files, '.github/workflows/greetings.yml') &&
|
||||||
!contains(steps.changed-files-specific-source-file.outputs.all_changed_files, 'test/test.txt')
|
!contains(steps.changed-files-specific-source-file.outputs.all_changed_files, 'test/test.txt')
|
||||||
)
|
)
|
||||||
run: |
|
run: |
|
||||||
@@ -548,7 +562,7 @@ jobs:
|
|||||||
(
|
(
|
||||||
!contains(steps.changed-files-specific-source-file.outputs.all_modified_files, 'action.yml') &&
|
!contains(steps.changed-files-specific-source-file.outputs.all_modified_files, 'action.yml') &&
|
||||||
!contains(steps.changed-files-specific-source-file.outputs.all_modified_files, '.github/workflows/test.yml') &&
|
!contains(steps.changed-files-specific-source-file.outputs.all_modified_files, '.github/workflows/test.yml') &&
|
||||||
!contains(steps.changed-files-specific-source-file.outputs.all_modified_files, '.github/workflows/rebase.yml') &&
|
!contains(steps.changed-files-specific-source-file.outputs.all_modified_files, '.github/workflows/greetings.yml') &&
|
||||||
!contains(steps.changed-files-specific-source-file.outputs.all_modified_files, 'test/test.txt')
|
!contains(steps.changed-files-specific-source-file.outputs.all_modified_files, 'test/test.txt')
|
||||||
)
|
)
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
6
.github/workflows/update-readme.yml
vendored
6
.github/workflows/update-readme.yml
vendored
@@ -9,12 +9,12 @@ jobs:
|
|||||||
sync-assets:
|
sync-assets:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.0.0
|
- uses: actions/checkout@v3.0.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Run test
|
- name: Run test
|
||||||
uses: tj-actions/remark@v2.3
|
uses: tj-actions/remark@v3
|
||||||
|
|
||||||
- name: Verify Changed files
|
- name: Verify Changed files
|
||||||
uses: tj-actions/verify-changed-files@v9
|
uses: tj-actions/verify-changed-files@v9
|
||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: peter-evans/create-pull-request@v3.14.0
|
uses: peter-evans/create-pull-request@v4.0.2
|
||||||
with:
|
with:
|
||||||
base: "main"
|
base: "main"
|
||||||
title: "Updated README.md"
|
title: "Updated README.md"
|
||||||
|
|||||||
129
HISTORY.md
129
HISTORY.md
@@ -1,12 +1,124 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [Unreleased](https://github.com/tj-actions/changed-files/tree/HEAD)
|
## [v18.7](https://github.com/tj-actions/changed-files/tree/v18.7) (2022-04-08)
|
||||||
|
|
||||||
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v17.3...HEAD)
|
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v18.6...v18.7)
|
||||||
|
|
||||||
|
**Fixed bugs:**
|
||||||
|
|
||||||
|
- \[BUG\] Modified files treated as `Non Matching modified files` [\#450](https://github.com/tj-actions/changed-files/issues/450)
|
||||||
|
|
||||||
|
**Closed issues:**
|
||||||
|
|
||||||
|
- Dependency Dashboard [\#27](https://github.com/tj-actions/changed-files/issues/27)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- chore\(deps\): update peter-evans/create-pull-request action to v4.0.1 [\#461](https://github.com/tj-actions/changed-files/pull/461) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- Upgraded to v18.6 [\#460](https://github.com/tj-actions/changed-files/pull/460) ([jackton1](https://github.com/jackton1))
|
||||||
|
|
||||||
|
## [v18.6](https://github.com/tj-actions/changed-files/tree/v18.6) (2022-03-30)
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v18.5...v18.6)
|
||||||
|
|
||||||
|
**Fixed bugs:**
|
||||||
|
|
||||||
|
- \[BUG\] Intermittent "Unable to locate the current sha" [\#458](https://github.com/tj-actions/changed-files/issues/458)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- fix: resolved error with escaping unicode unsafe characters [\#459](https://github.com/tj-actions/changed-files/pull/459) ([jackton1](https://github.com/jackton1))
|
||||||
|
- chore: remove unused code [\#457](https://github.com/tj-actions/changed-files/pull/457) ([jackton1](https://github.com/jackton1))
|
||||||
|
- chore: test changes to .github workflows files [\#456](https://github.com/tj-actions/changed-files/pull/456) ([jackton1](https://github.com/jackton1))
|
||||||
|
- chore: test filenames that should be escaped [\#455](https://github.com/tj-actions/changed-files/pull/455) ([jackton1](https://github.com/jackton1))
|
||||||
|
- Upgraded to v18.5 [\#454](https://github.com/tj-actions/changed-files/pull/454) ([jackton1](https://github.com/jackton1))
|
||||||
|
|
||||||
|
## [v18.5](https://github.com/tj-actions/changed-files/tree/v18.5) (2022-03-29)
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v18.4...v18.5)
|
||||||
|
|
||||||
|
**Implemented enhancements:**
|
||||||
|
|
||||||
|
- \[Feature\] Get changes from all commits from a single push [\#447](https://github.com/tj-actions/changed-files/issues/447)
|
||||||
|
|
||||||
|
**Fixed bugs:**
|
||||||
|
|
||||||
|
- \[BUG\] Not able to compare current commit with the specific commit of a branch\(in the Pull request event\) [\#441](https://github.com/tj-actions/changed-files/issues/441)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- fix: bug passing invalid patterns to grep [\#453](https://github.com/tj-actions/changed-files/pull/453) ([jackton1](https://github.com/jackton1))
|
||||||
|
- chore\(deps\): update tj-actions/glob action to v7.12 [\#451](https://github.com/tj-actions/changed-files/pull/451) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- chore\(deps\): update pascalgn/automerge-action action to v0.15.2 [\#449](https://github.com/tj-actions/changed-files/pull/449) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- chore\(deps\): update pascalgn/automerge-action action to v0.14.4 [\#448](https://github.com/tj-actions/changed-files/pull/448) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- chore\(deps\): update peter-evans/create-pull-request action to v4 [\#446](https://github.com/tj-actions/changed-files/pull/446) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- chore\(deps\): update tj-actions/glob action to v7.11 [\#445](https://github.com/tj-actions/changed-files/pull/445) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- Updated README.md [\#444](https://github.com/tj-actions/changed-files/pull/444) ([jackton1](https://github.com/jackton1))
|
||||||
|
- Upgraded to v18.4 [\#443](https://github.com/tj-actions/changed-files/pull/443) ([jackton1](https://github.com/jackton1))
|
||||||
|
|
||||||
|
## [v18.4](https://github.com/tj-actions/changed-files/tree/v18.4) (2022-03-21)
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v18.3...v18.4)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- Bump tj-actions/remark from 2.3 to 3 [\#442](https://github.com/tj-actions/changed-files/pull/442) ([dependabot[bot]](https://github.com/apps/dependabot))
|
||||||
|
- chore\(deps\): update tj-actions/glob action to v7.10 [\#440](https://github.com/tj-actions/changed-files/pull/440) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- Update README.md [\#439](https://github.com/tj-actions/changed-files/pull/439) ([jackton1](https://github.com/jackton1))
|
||||||
|
- Upgraded to v18.3 [\#438](https://github.com/tj-actions/changed-files/pull/438) ([jackton1](https://github.com/jackton1))
|
||||||
|
|
||||||
|
## [v18.3](https://github.com/tj-actions/changed-files/tree/v18.3) (2022-03-16)
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v18.2...v18.3)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- chore\(deps\): update tj-actions/glob action to v7.9 [\#436](https://github.com/tj-actions/changed-files/pull/436) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- Upgraded to v18.2 [\#435](https://github.com/tj-actions/changed-files/pull/435) ([jackton1](https://github.com/jackton1))
|
||||||
|
|
||||||
|
## [v18.2](https://github.com/tj-actions/changed-files/tree/v18.2) (2022-03-16)
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v18.1...v18.2)
|
||||||
|
|
||||||
|
**Fixed bugs:**
|
||||||
|
|
||||||
|
- \[BUG\] Glob Pattern Incorrect? [\#433](https://github.com/tj-actions/changed-files/issues/433)
|
||||||
|
- \[BUG\] Providing files\_ignore without using files input doesn't exclude ignored files [\#429](https://github.com/tj-actions/changed-files/issues/429)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- fix: bug omitting the fetch-depth for push based events [\#434](https://github.com/tj-actions/changed-files/pull/434) ([jackton1](https://github.com/jackton1))
|
||||||
|
- Upgraded to v18.1 [\#432](https://github.com/tj-actions/changed-files/pull/432) ([jackton1](https://github.com/jackton1))
|
||||||
|
|
||||||
|
## [v18.1](https://github.com/tj-actions/changed-files/tree/v18.1) (2022-03-14)
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v18...v18.1)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- fix: bug providing files\_ignore without files input [\#431](https://github.com/tj-actions/changed-files/pull/431) ([jackton1](https://github.com/jackton1))
|
||||||
|
- chore\(deps\): update tj-actions/glob action to v7.7 [\#430](https://github.com/tj-actions/changed-files/pull/430) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- chore\(deps\): update tj-actions/glob action to v7.6 [\#428](https://github.com/tj-actions/changed-files/pull/428) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- chore\(deps\): update tj-actions/github-changelog-generator action to v1.13 [\#427](https://github.com/tj-actions/changed-files/pull/427) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- Upgraded to v18 [\#426](https://github.com/tj-actions/changed-files/pull/426) ([jackton1](https://github.com/jackton1))
|
||||||
|
|
||||||
|
## [v18](https://github.com/tj-actions/changed-files/tree/v18) (2022-03-14)
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v17.3...v18)
|
||||||
|
|
||||||
**Fixed bugs:**
|
**Fixed bugs:**
|
||||||
|
|
||||||
- \[BUG\] Separator `\n` only outputs first changed file [\#417](https://github.com/tj-actions/changed-files/issues/417)
|
- \[BUG\] Separator `\n` only outputs first changed file [\#417](https://github.com/tj-actions/changed-files/issues/417)
|
||||||
|
- \[BUG\] Argument list too long with files input [\#367](https://github.com/tj-actions/changed-files/issues/367)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- feat: Add support for using file patterns on disk [\#425](https://github.com/tj-actions/changed-files/pull/425) ([jackton1](https://github.com/jackton1))
|
||||||
|
- chore\(deps\): update tj-actions/glob action to v7.5 [\#424](https://github.com/tj-actions/changed-files/pull/424) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- Update tj-actions/verify-changed-files action to v9 [\#423](https://github.com/tj-actions/changed-files/pull/423) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- chore: Upgrade tj-actions/glob to v7.4 [\#422](https://github.com/tj-actions/changed-files/pull/422) ([jackton1](https://github.com/jackton1))
|
||||||
|
- Update codacy/codacy-analysis-cli-action action to v4.0.2 [\#421](https://github.com/tj-actions/changed-files/pull/421) ([renovate[bot]](https://github.com/apps/renovate))
|
||||||
|
- Upgraded to v17.3 [\#420](https://github.com/tj-actions/changed-files/pull/420) ([jackton1](https://github.com/jackton1))
|
||||||
|
|
||||||
## [v17.3](https://github.com/tj-actions/changed-files/tree/v17.3) (2022-03-08)
|
## [v17.3](https://github.com/tj-actions/changed-files/tree/v17.3) (2022-03-08)
|
||||||
|
|
||||||
@@ -21,7 +133,6 @@
|
|||||||
**Closed issues:**
|
**Closed issues:**
|
||||||
|
|
||||||
- \[BUG\] Unexpected result [\#412](https://github.com/tj-actions/changed-files/issues/412)
|
- \[BUG\] Unexpected result [\#412](https://github.com/tj-actions/changed-files/issues/412)
|
||||||
- Dependency Dashboard [\#27](https://github.com/tj-actions/changed-files/issues/27)
|
|
||||||
|
|
||||||
**Merged pull requests:**
|
**Merged pull requests:**
|
||||||
|
|
||||||
@@ -285,7 +396,7 @@
|
|||||||
|
|
||||||
## [v13](https://github.com/tj-actions/changed-files/tree/v13) (2022-02-17)
|
## [v13](https://github.com/tj-actions/changed-files/tree/v13) (2022-02-17)
|
||||||
|
|
||||||
[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:**
|
**Implemented enhancements:**
|
||||||
|
|
||||||
@@ -304,13 +415,13 @@
|
|||||||
- \[BUG\] wrong result of any\_change output [\#314](https://github.com/tj-actions/changed-files/issues/314)
|
- \[BUG\] wrong result of any\_change output [\#314](https://github.com/tj-actions/changed-files/issues/314)
|
||||||
- \[BUG\] Investigate possible bug using since\_last\_remote\_commit when force pushing changes. [\#303](https://github.com/tj-actions/changed-files/issues/303)
|
- \[BUG\] Investigate possible bug using since\_last\_remote\_commit when force pushing changes. [\#303](https://github.com/tj-actions/changed-files/issues/303)
|
||||||
|
|
||||||
## [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)
|
## [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:**
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
|||||||
69
README.md
69
README.md
@@ -20,7 +20,7 @@ Retrieve all changed files relative to the target branch (`pull_request*` based
|
|||||||
* Fast execution (0-2 seconds on average).
|
* Fast execution (0-2 seconds on average).
|
||||||
* Easy to debug.
|
* Easy to debug.
|
||||||
* Boolean output indicating that certain files have been changed.
|
* Boolean output indicating that certain files have been changed.
|
||||||
* Large repository support.
|
* Scales to large repositories.
|
||||||
* Git submodules support.
|
* Git submodules support.
|
||||||
* Multiple repositories support.
|
* Multiple repositories support.
|
||||||
* [GitHub-hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners) support
|
* [GitHub-hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners) support
|
||||||
@@ -44,7 +44,7 @@ Retrieve all changed files relative to the target branch (`pull_request*` based
|
|||||||
> * **IMPORTANT:** For `push` events you need to include `fetch-depth: 0` **OR** `fetch-depth: 2` depending on your use case.
|
> * **IMPORTANT:** For `push` events you need to include `fetch-depth: 0` **OR** `fetch-depth: 2` depending on your use case.
|
||||||
> * When using `persist-credentials: false` with `actions/checkout@v2` you'll need to specify a `token` using the `token` input.
|
> * When using `persist-credentials: false` with `actions/checkout@v2` you'll need to specify a `token` using the `token` input.
|
||||||
> * For monorepos where pulling all the branch history might not be desired, you can omit `fetch-depth` for `pull_request` events.
|
> * For monorepos where pulling all the branch history might not be desired, you can omit `fetch-depth` for `pull_request` events.
|
||||||
> * For files located in a sub-directory ensure that the pattern specified contains `**` (globstar) to match any preceding directories or explicitly pass the full path relative to the project root. See: [#314](https://github.com/tj-actions/changed-files/issues/314)
|
> * For files located in a sub-directory ensure that the pattern specified contains `**/` (globstar) to match any preceding directories or explicitly pass the full path relative to the project root. See: [#314](https://github.com/tj-actions/changed-files/issues/314)
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: CI
|
name: CI
|
||||||
@@ -62,13 +62,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest # windows-latest | macos-latest
|
runs-on: ubuntu-latest # windows-latest | macos-latest
|
||||||
name: Test changed-files
|
name: Test changed-files
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
||||||
|
|
||||||
- name: Get changed files
|
- name: Get changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v17.3
|
uses: tj-actions/changed-files@v18.7
|
||||||
|
|
||||||
- name: List all changed files
|
- name: List all changed files
|
||||||
run: |
|
run: |
|
||||||
@@ -140,24 +140,25 @@ Support this project with a :star:
|
|||||||
| path | `string` | `false` | | Relative path under <br> `GITHUB_WORKSPACE` <br> to the repository |
|
| path | `string` | `false` | | Relative path under <br> `GITHUB_WORKSPACE` <br> to the repository |
|
||||||
| since\_last\_remote\_commit | `string` | `false` | `false` | Use the last commit on the remote <br> branch as the `base_sha` <br> (Defaults to the last commit <br> on the target branch for Pull requests <br> or the previous commit <br> on the current branch <br> for push events). <br /> NOTE: This requires <br /> `fetch-depth: 0` <br /> with `actions/checkout@v2` |
|
| since\_last\_remote\_commit | `string` | `false` | `false` | Use the last commit on the remote <br> branch as the `base_sha` <br> (Defaults to the last commit <br> on the target branch for Pull requests <br> or the previous commit <br> on the current branch <br> for push events). <br /> NOTE: This requires <br /> `fetch-depth: 0` <br /> with `actions/checkout@v2` |
|
||||||
| use\_fork\_point | `string` | `false` | `false` | Finds best common ancestor <br /> between two commits <br /> to use in a three-way merge <br /> as the `base_sha` <br /> See: [git merge-base](https://git-scm.com/docs/git-merge-base#Documentation/git-merge-base.txt---fork-point). <br> NOTE: This pulls the entire commit history of the base branch |
|
| use\_fork\_point | `string` | `false` | `false` | Finds best common ancestor <br /> between two commits <br /> to use in a three-way merge <br /> as the `base_sha` <br /> See: [git merge-base](https://git-scm.com/docs/git-merge-base#Documentation/git-merge-base.txt---fork-point). <br> NOTE: This pulls the entire commit history of the base branch |
|
||||||
|
| quotepath | `string` | `false` | `true` | Output filenames completely verbatim by setting this to `false` |
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
...
|
...
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
# with:
|
# with:
|
||||||
# fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
# fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
||||||
# submodules: true # OR "recursive" -> To include all changed submodule files.
|
# submodules: true # OR "recursive" -> To include all changed submodule files.
|
||||||
|
|
||||||
- name: Get changed files using defaults
|
- name: Get changed files using defaults
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v17.3
|
uses: tj-actions/changed-files@v18.7
|
||||||
|
|
||||||
- name: Get changed files using a comma separator
|
- name: Get changed files using a comma separator
|
||||||
id: changed-files-comma
|
id: changed-files-comma
|
||||||
uses: tj-actions/changed-files@v17.3
|
uses: tj-actions/changed-files@v18.7
|
||||||
with:
|
with:
|
||||||
separator: ","
|
separator: ","
|
||||||
|
|
||||||
@@ -179,7 +180,7 @@ Support this project with a :star:
|
|||||||
|
|
||||||
- name: Get specific changed files
|
- name: Get specific changed files
|
||||||
id: changed-files-specific
|
id: changed-files-specific
|
||||||
uses: tj-actions/changed-files@v17.3
|
uses: tj-actions/changed-files@v18.7
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
my-file.txt
|
my-file.txt
|
||||||
@@ -220,14 +221,14 @@ Support this project with a :star:
|
|||||||
|
|
||||||
- name: Use a source file or list of file(s) to populate to files input.
|
- name: Use a source file or list of file(s) to populate to files input.
|
||||||
id: changed-files-specific-source-file
|
id: changed-files-specific-source-file
|
||||||
uses: tj-actions/changed-files@v17.3
|
uses: tj-actions/changed-files@v18.7
|
||||||
with:
|
with:
|
||||||
files_from_source_file: |
|
files_from_source_file: |
|
||||||
test/changed-files-list.txt
|
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.
|
- 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
|
id: changed-files-specific-source-file-and-specify-files
|
||||||
uses: tj-actions/changed-files@v17.3
|
uses: tj-actions/changed-files@v18.7
|
||||||
with:
|
with:
|
||||||
files_from_source_file: |
|
files_from_source_file: |
|
||||||
test/changed-files-list.txt
|
test/changed-files-list.txt
|
||||||
@@ -236,13 +237,13 @@ Support this project with a :star:
|
|||||||
|
|
||||||
- name: Use a different commit SHA
|
- name: Use a different commit SHA
|
||||||
id: changed-files-custom-sha
|
id: changed-files-custom-sha
|
||||||
uses: tj-actions/changed-files@v17.3
|
uses: tj-actions/changed-files@v18.7
|
||||||
with:
|
with:
|
||||||
sha: ${{ github.event.pull_request.head.sha }}
|
sha: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: Use a different base SHA
|
- name: Use a different base SHA
|
||||||
id: changed-files-custom-base-sha
|
id: changed-files-custom-base-sha
|
||||||
uses: tj-actions/changed-files@v17.3
|
uses: tj-actions/changed-files@v18.7
|
||||||
with:
|
with:
|
||||||
base_sha: "2096ed0"
|
base_sha: "2096ed0"
|
||||||
|
|
||||||
@@ -254,7 +255,7 @@ Support this project with a :star:
|
|||||||
|
|
||||||
- name: Run changed-files with defaults on the dir1
|
- name: Run changed-files with defaults on the dir1
|
||||||
id: changed-files-for-dir1
|
id: changed-files-for-dir1
|
||||||
uses: tj-actions/changed-files@v17.3
|
uses: tj-actions/changed-files@v18.7
|
||||||
with:
|
with:
|
||||||
path: dir1
|
path: dir1
|
||||||
|
|
||||||
@@ -266,13 +267,13 @@ Support this project with a :star:
|
|||||||
|
|
||||||
- name: Run changed-files using the last commit on the remote branch
|
- name: Run changed-files using the last commit on the remote branch
|
||||||
id: changed-files-since-last-remote-commit
|
id: changed-files-since-last-remote-commit
|
||||||
uses: tj-actions/changed-files@v17.3
|
uses: tj-actions/changed-files@v18.7
|
||||||
with:
|
with:
|
||||||
since_last_remote_commit: "true"
|
since_last_remote_commit: "true"
|
||||||
|
|
||||||
- name: Run changed-files using the fork point of a pull request
|
- name: Run changed-files using the fork point of a pull request
|
||||||
id: changed-files-fork-point
|
id: changed-files-fork-point
|
||||||
uses: tj-actions/changed-files@v17.3
|
uses: tj-actions/changed-files@v18.7
|
||||||
with:
|
with:
|
||||||
use_fork_point: "true"
|
use_fork_point: "true"
|
||||||
|
|
||||||
@@ -288,7 +289,7 @@ Support this project with a :star:
|
|||||||
>
|
>
|
||||||
> * Using characters like `\n`, `%` and `\r` as separators would be [URL encoded](https://www.w3schools.com/tags/ref_urlencode.asp)
|
> * Using characters like `\n`, `%` and `\r` as separators would be [URL encoded](https://www.w3schools.com/tags/ref_urlencode.asp)
|
||||||
> * Spaces in file names can introduce bugs when using bash loops. See: [#216](https://github.com/tj-actions/changed-files/issues/216)
|
> * Spaces in file names can introduce bugs when using bash loops. See: [#216](https://github.com/tj-actions/changed-files/issues/216)
|
||||||
> * However, this action will handle spaces in file names, with a recommendation of using a separator to prevent hidden issues.
|
> However, this action will handle spaces in file names, with a recommendation of using a separator to prevent hidden issues.
|
||||||
> 
|
> 
|
||||||
|
|
||||||
## Versioning
|
## Versioning
|
||||||
@@ -300,6 +301,42 @@ This project follows a `v(major).(patch)` versioning scheme with the exception o
|
|||||||
> * Users referencing the legacy `v1.x.x` -> `v5.0.0` semantic versions, are required to switch over to `v10.x` -> `v15.x` respectively as new releases would no longer be deployed using the old versioning scheme.
|
> * Users referencing the legacy `v1.x.x` -> `v5.0.0` semantic versions, are required to switch over to `v10.x` -> `v15.x` respectively as new releases would no longer be deployed using the old versioning scheme.
|
||||||
> * A breaking change was introduced in `v1.1.4` and `v13.x` which has been fixed.
|
> * A breaking change was introduced in `v1.1.4` and `v13.x` which has been fixed.
|
||||||
|
|
||||||
|
## Migration guide
|
||||||
|
|
||||||
|
With the switch from using grep's Extended regex to match files to the natively supported workflow glob pattern matching snytax introduced in [v13](https://github.com/tj-actions/changed-files/releases/tag/v13) you'll need to modify patterns used to match `files`.
|
||||||
|
|
||||||
|
**BEFORE**
|
||||||
|
|
||||||
|
```yml
|
||||||
|
...
|
||||||
|
|
||||||
|
- name: Get specific changed files
|
||||||
|
id: changed-files-specific
|
||||||
|
uses: tj-actions/changed-files@v12.2
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
\.sh$
|
||||||
|
.(sql|py)$
|
||||||
|
^(mynewfile|custom)
|
||||||
|
```
|
||||||
|
|
||||||
|
**AFTER**
|
||||||
|
|
||||||
|
```yml
|
||||||
|
...
|
||||||
|
|
||||||
|
- name: Get specific changed files
|
||||||
|
id: changed-files-specific
|
||||||
|
uses: tj-actions/changed-files@v18.7
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
*.sh
|
||||||
|
*.sql
|
||||||
|
*.py
|
||||||
|
mynewfile
|
||||||
|
custom/**
|
||||||
|
```
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
This package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter).
|
This package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter).
|
||||||
|
|||||||
14
action.yml
14
action.yml
@@ -1,5 +1,5 @@
|
|||||||
name: Changed files
|
name: Changed Files
|
||||||
description: Get all changed files for push and pull request events.
|
description: Get all Added, Copied, Modified, Deleted, Renamed, Type changed, Unmerged, Unknown files.
|
||||||
author: tj-actions
|
author: tj-actions
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
@@ -53,6 +53,10 @@ inputs:
|
|||||||
description: 'Finds best common ancestor between two commits to use in a three-way merge as the base_sha'
|
description: 'Finds best common ancestor between two commits to use in a three-way merge as the base_sha'
|
||||||
default: 'false'
|
default: 'false'
|
||||||
required: false
|
required: false
|
||||||
|
quotepath:
|
||||||
|
description: 'Output filenames completely verbatim by setting this to false'
|
||||||
|
default: 'true'
|
||||||
|
required: false
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
added_files:
|
added_files:
|
||||||
@@ -147,11 +151,12 @@ runs:
|
|||||||
INPUT_PATH: ${{ inputs.path }}
|
INPUT_PATH: ${{ inputs.path }}
|
||||||
INPUT_USE_FORK_POINT: ${{ inputs.use_fork_point }}
|
INPUT_USE_FORK_POINT: ${{ inputs.use_fork_point }}
|
||||||
- name: Glob match
|
- name: Glob match
|
||||||
uses: tj-actions/glob@v7.5
|
uses: tj-actions/glob@v7.16
|
||||||
id: glob
|
id: glob
|
||||||
with:
|
with:
|
||||||
files: ${{ inputs.files }}
|
files: ${{ inputs.files }}
|
||||||
files-separator: ${{ inputs.files_separator }}
|
files-separator: ${{ inputs.files_separator }}
|
||||||
|
escape-paths: true
|
||||||
excluded-files: ${{ inputs.files_ignore }}
|
excluded-files: ${{ inputs.files_ignore }}
|
||||||
excluded-files-separator: ${{ inputs.files_ignore_separator }}
|
excluded-files-separator: ${{ inputs.files_ignore_separator }}
|
||||||
files-from-source-file: ${{ inputs.files_from_source_file }}
|
files-from-source-file: ${{ inputs.files_from_source_file }}
|
||||||
@@ -159,7 +164,7 @@ runs:
|
|||||||
working-directory: ${{ inputs.path }}
|
working-directory: ${{ inputs.path }}
|
||||||
base-sha: ${{ steps.changed-files-diff-sha.outputs.previous_sha }}
|
base-sha: ${{ steps.changed-files-diff-sha.outputs.previous_sha }}
|
||||||
sha: ${{ steps.changed-files-diff-sha.outputs.current_sha }}
|
sha: ${{ steps.changed-files-diff-sha.outputs.current_sha }}
|
||||||
include-deleted-files: "true"
|
include-deleted-files: true
|
||||||
separator: "|"
|
separator: "|"
|
||||||
- run: |
|
- run: |
|
||||||
bash $GITHUB_ACTION_PATH/entrypoint.sh
|
bash $GITHUB_ACTION_PATH/entrypoint.sh
|
||||||
@@ -176,6 +181,7 @@ runs:
|
|||||||
INPUT_CURRENT_SHA: ${{ steps.changed-files-diff-sha.outputs.current_sha }}
|
INPUT_CURRENT_SHA: ${{ steps.changed-files-diff-sha.outputs.current_sha }}
|
||||||
INPUT_TARGET_BRANCH: ${{ steps.changed-files-diff-sha.outputs.target_branch }}
|
INPUT_TARGET_BRANCH: ${{ steps.changed-files-diff-sha.outputs.target_branch }}
|
||||||
INPUT_CURRENT_BRANCH: ${{ steps.changed-files-diff-sha.outputs.current_branch }}
|
INPUT_CURRENT_BRANCH: ${{ steps.changed-files-diff-sha.outputs.current_branch }}
|
||||||
|
INPUT_QUOTEPATH: ${{ inputs.quotepath }}
|
||||||
|
|
||||||
branding:
|
branding:
|
||||||
icon: file-text
|
icon: file-text
|
||||||
|
|||||||
@@ -52,10 +52,13 @@ if [[ -z $GITHUB_BASE_REF ]]; then
|
|||||||
CURRENT_BRANCH=$TARGET_BRANCH
|
CURRENT_BRANCH=$TARGET_BRANCH
|
||||||
|
|
||||||
if [[ -z $INPUT_BASE_SHA ]]; then
|
if [[ -z $INPUT_BASE_SHA ]]; then
|
||||||
|
git fetch --no-tags -u --progress --depth=2 temp_changed_files "${CURRENT_BRANCH}":"${CURRENT_BRANCH}" && exit_status=$? || exit_status=$?
|
||||||
|
|
||||||
if [[ $(git rev-list --count HEAD) -gt 1 ]]; then
|
if [[ $(git rev-list --count HEAD) -gt 1 ]]; then
|
||||||
PREVIOUS_SHA=$(git rev-list --no-merges -n 1 HEAD^1 2>&1) && exit_status=$? || exit_status=$?
|
PREVIOUS_SHA=$(git rev-list --no-merges -n 1 HEAD^1 2>&1) && exit_status=$? || exit_status=$?
|
||||||
else
|
else
|
||||||
PREVIOUS_SHA=$CURRENT_SHA
|
PREVIOUS_SHA=$CURRENT_SHA
|
||||||
|
echo "Initial commit detected"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
PREVIOUS_SHA=$INPUT_BASE_SHA && exit_status=$? || exit_status=$?
|
PREVIOUS_SHA=$INPUT_BASE_SHA && exit_status=$? || exit_status=$?
|
||||||
|
|||||||
@@ -6,6 +6,12 @@ INPUT_SEPARATOR="${INPUT_SEPARATOR//'%'/'%25'}"
|
|||||||
INPUT_SEPARATOR="${INPUT_SEPARATOR//$'\n'/'%0A'}"
|
INPUT_SEPARATOR="${INPUT_SEPARATOR//$'\n'/'%0A'}"
|
||||||
INPUT_SEPARATOR="${INPUT_SEPARATOR//$'\r'/'%0D'}"
|
INPUT_SEPARATOR="${INPUT_SEPARATOR//$'\r'/'%0D'}"
|
||||||
|
|
||||||
|
if [[ $INPUT_QUOTEPATH == "false" ]]; then
|
||||||
|
git config --global core.quotepath off
|
||||||
|
else
|
||||||
|
git config --global core.quotepath on
|
||||||
|
fi
|
||||||
|
|
||||||
function get_diff() {
|
function get_diff() {
|
||||||
base="$1"
|
base="$1"
|
||||||
sha="$2"
|
sha="$2"
|
||||||
|
|||||||
1
test/[test new].txt
Normal file
1
test/[test new].txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
This is a test file
|
||||||
@@ -4,3 +4,4 @@ action.yml
|
|||||||
action.yml
|
action.yml
|
||||||
**/test.txt
|
**/test.txt
|
||||||
!test/test/test.txt
|
!test/test/test.txt
|
||||||
|
[test new].txt
|
||||||
|
|||||||
1
test/test-è.txt
Normal file
1
test/test-è.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
This is a test file.
|
||||||
Reference in New Issue
Block a user