Compare commits
47 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2bb1357773 | ||
|
|
cc98117d39 | ||
|
|
786e4213ea | ||
|
|
726b41bbed | ||
|
|
2c3585e584 | ||
|
|
3d37a7ff08 | ||
|
|
445b0eb328 | ||
|
|
4f892cd563 | ||
|
|
611865116d | ||
|
|
e517d7a5ca | ||
|
|
c23d52ba6f | ||
|
|
4750530ff4 | ||
|
|
22103cc46b | ||
|
|
6c02e900a2 | ||
|
|
05f9457d92 | ||
|
|
52ed872dd7 | ||
|
|
1cc5746379 | ||
|
|
de2962f9f4 | ||
|
|
37e96ccbfe | ||
|
|
2180b0f05d | ||
|
|
cf021c158c | ||
|
|
b54ac6f17f | ||
|
|
0f2a510bd7 | ||
|
|
35dace0375 | ||
|
|
9ee99eb5bd | ||
|
|
b7ac303c86 | ||
|
|
7dee1b0c15 | ||
|
|
28b28f6e4e | ||
|
|
875e6e5df8 | ||
|
|
8cba46e29c | ||
|
|
925972f627 | ||
|
|
a98754bb6a | ||
|
|
9c13e73478 | ||
|
|
caee9d94ce | ||
|
|
16d791cc10 | ||
|
|
8e056dec7d | ||
|
|
7d5bbf4e8d | ||
|
|
078e2bcd1e | ||
|
|
8c4da285a3 | ||
|
|
2f2f6cf099 | ||
|
|
8262acc559 | ||
|
|
b3bb1f8753 | ||
|
|
c6a5847dac | ||
|
|
daf9d2d497 | ||
|
|
3c4bc6fa0c | ||
|
|
cd7fbbcebb | ||
|
|
60a1a28396 |
4
.github/workflows/codacy-analysis.yml
vendored
4
.github/workflows/codacy-analysis.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
||||
steps:
|
||||
# Checkout the repository to the GitHub Actions runner
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
|
||||
- name: Run Codacy Analysis CLI
|
||||
@@ -51,6 +51,6 @@ jobs:
|
||||
# Upload the SARIF file generated in the previous step
|
||||
- name: Upload SARIF results file
|
||||
continue-on-error: true
|
||||
uses: github/codeql-action/upload-sarif@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v3.29.5
|
||||
uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5
|
||||
with:
|
||||
sarif_file: results.sarif
|
||||
|
||||
8
.github/workflows/codeql.yml
vendored
8
.github/workflows/codeql.yml
vendored
@@ -43,11 +43,11 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v3.29.5
|
||||
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
@@ -61,7 +61,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v3.29.5
|
||||
uses: github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
||||
@@ -74,6 +74,6 @@ jobs:
|
||||
# ./location_of_script_within_repo/buildscript.sh
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v3.29.5
|
||||
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5
|
||||
with:
|
||||
category: "/language:${{matrix.language}}"
|
||||
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
NUMBER: ${{ github.event.issue.number }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
@@ -104,7 +104,7 @@ jobs:
|
||||
NUMBER: ${{ github.event.issue.number }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
16
.github/workflows/matrix-example.yml
vendored
16
.github/workflows/matrix-example.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
matrix: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get changed files
|
||||
@@ -39,7 +39,19 @@ jobs:
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- name: Test
|
||||
run: |
|
||||
echo ${{ matrix.files }}
|
||||
|
||||
conditional-job:
|
||||
name: Run Conditional Job
|
||||
runs-on: ubuntu-latest
|
||||
needs: [changed-files]
|
||||
if: contains(needs.changed-files.outputs.matrix, 'README.md') # Conditional check for README
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- name: Execute Conditional Logic
|
||||
run: |
|
||||
echo "README.md has been changed. Running conditional job."
|
||||
|
||||
4
.github/workflows/multi-job-example.yml
vendored
4
.github/workflows/multi-job-example.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
all_changed_files: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get changed files
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
all_changed_files: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get changed files
|
||||
|
||||
6
.github/workflows/sync-release-version.yml
vendored
6
.github/workflows/sync-release-version.yml
vendored
@@ -13,11 +13,11 @@ jobs:
|
||||
update-version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Run release-tagger
|
||||
uses: tj-actions/release-tagger@1a9264b0fd99a1ef92c4fd2f077f292900cc79b6 # v4.0.0
|
||||
uses: tj-actions/release-tagger@970a1f5f827a7b90902b0adc904f3bb70c1074e7 # v6.0.6
|
||||
- name: Sync release version.
|
||||
uses: tj-actions/sync-release-version@2a7ef0deb39b3ecce887ee99d2261c6cef989d84 # v13.16
|
||||
id: sync-release-version
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
- name: Run git-cliff
|
||||
uses: tj-actions/git-cliff@679041f051a4d2ab452f7e5e7b0eed2abee21131 # v2.2.0
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
|
||||
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
|
||||
with:
|
||||
base: "main"
|
||||
labels: "merge when passing"
|
||||
|
||||
191
.github/workflows/test.yml
vendored
191
.github/workflows/test.yml
vendored
@@ -38,14 +38,14 @@ jobs:
|
||||
contents: write
|
||||
pull-requests: read
|
||||
steps:
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
fetch-depth: 0
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Use Node.js 24.x
|
||||
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
cache: 'yarn'
|
||||
node-version: '24.x'
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FORK: ${{ github.event.pull_request.head.repo.fork }}
|
||||
|
||||
- name: Upload build assets
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
||||
with:
|
||||
name: build-assets
|
||||
path: dist
|
||||
@@ -109,7 +109,7 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout into dir1
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
submodules: true
|
||||
@@ -117,7 +117,7 @@ jobs:
|
||||
path: dir1
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
path: dir1/dist
|
||||
@@ -143,13 +143,13 @@ jobs:
|
||||
bash
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
path: dir2/dist
|
||||
|
||||
- name: Checkout into dir2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
submodules: true
|
||||
@@ -185,13 +185,13 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -245,13 +245,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -275,6 +275,113 @@ jobs:
|
||||
shell:
|
||||
bash
|
||||
|
||||
test-skip-same-base-and-commit-sha:
|
||||
name: Test changed-files skip same base and commit sha
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: needs.build.outputs.files_changed != 'true'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
- name: Get head SHA
|
||||
id: head-sha
|
||||
run: |
|
||||
echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
|
||||
shell:
|
||||
bash
|
||||
|
||||
- name: Run changed-files with same base and commit sha
|
||||
id: changed-files
|
||||
uses: ./
|
||||
with:
|
||||
base_sha: ${{ steps.head-sha.outputs.sha }}
|
||||
sha: ${{ steps.head-sha.outputs.sha }}
|
||||
skip_same_sha: true
|
||||
|
||||
- name: Verify empty outputs
|
||||
if: steps.changed-files.outputs.all_changed_files_count != '0' || steps.changed-files.outputs.any_changed != 'false'
|
||||
run: |
|
||||
echo "Expected empty outputs; got count=${{ steps.changed-files.outputs.all_changed_files_count }} any_changed=${{ steps.changed-files.outputs.any_changed }}"
|
||||
exit 1
|
||||
shell:
|
||||
bash
|
||||
|
||||
- name: Show output
|
||||
run: |
|
||||
echo '${{ toJSON(steps.changed-files.outputs) }}'
|
||||
shell:
|
||||
bash
|
||||
|
||||
test-exclude-symlinks:
|
||||
name: Test changed-files exclude symlinks
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: needs.build.outputs.files_changed != 'true'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
- name: Run changed-files without symlink exclusion
|
||||
id: changed-files-symlink-included
|
||||
uses: ./
|
||||
with:
|
||||
base_sha: 2f2f6cf099167fa7d7c6aba8fc0421327e181a5a
|
||||
sha: 8c4da285a3cb8b621b4a5cc251d6282b4b0a67a5
|
||||
|
||||
- name: Verify symlink is present
|
||||
if: "!contains(steps.changed-files-symlink-included.outputs.added_files, 'test/symlink-to-target')"
|
||||
run: |
|
||||
echo "Expected symlink to be present in added_files; got ${{ steps.changed-files-symlink-included.outputs.added_files }}"
|
||||
exit 1
|
||||
shell:
|
||||
bash
|
||||
|
||||
- name: Run changed-files excluding symlinks
|
||||
id: changed-files-symlink-excluded
|
||||
uses: ./
|
||||
with:
|
||||
base_sha: 2f2f6cf099167fa7d7c6aba8fc0421327e181a5a
|
||||
sha: 8c4da285a3cb8b621b4a5cc251d6282b4b0a67a5
|
||||
exclude_symlinks: true
|
||||
|
||||
- name: Verify symlink is excluded
|
||||
if: "contains(steps.changed-files-symlink-excluded.outputs.added_files, 'test/symlink-to-target') || contains(steps.changed-files-symlink-excluded.outputs.all_changed_files, 'test/symlink-to-target')"
|
||||
run: |
|
||||
echo "Expected symlink to be excluded; got added=${{ steps.changed-files-symlink-excluded.outputs.added_files }} all=${{ steps.changed-files-symlink-excluded.outputs.all_changed_files }}"
|
||||
exit 1
|
||||
shell:
|
||||
bash
|
||||
|
||||
- name: Show output
|
||||
run: |
|
||||
echo '${{ toJSON(steps.changed-files-symlink-included.outputs) }}'
|
||||
echo '${{ toJSON(steps.changed-files-symlink-excluded.outputs) }}'
|
||||
shell:
|
||||
bash
|
||||
|
||||
test-using-branch-names-for-base-sha-and-sha-inputs:
|
||||
name: Test using branch names for base_sha and sha inputs
|
||||
runs-on: ubuntu-latest
|
||||
@@ -289,13 +396,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -328,13 +435,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
fetch-depth: ${{ matrix.fetch-depth }}
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -362,12 +469,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -396,14 +503,14 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: ${{ matrix.fetch-depth }}
|
||||
persist-credentials: false
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -426,10 +533,10 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -481,10 +588,10 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -536,7 +643,7 @@ jobs:
|
||||
pull-requests: read
|
||||
steps:
|
||||
- name: Checkout into dir1
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
submodules: true
|
||||
@@ -544,7 +651,7 @@ jobs:
|
||||
path: dir1
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
path: dir1/dist
|
||||
@@ -568,14 +675,14 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
path: dist
|
||||
@@ -605,7 +712,7 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout into dir1
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
submodules: true
|
||||
@@ -613,7 +720,7 @@ jobs:
|
||||
path: dir1
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
path: dir1/dist
|
||||
@@ -644,14 +751,14 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
submodules: recursive
|
||||
fetch-depth: ${{ matrix.fetch-depth }}
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -710,14 +817,14 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
submodules: recursive
|
||||
fetch-depth: ${{ matrix.fetch-depth }}
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -805,14 +912,14 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
submodules: recursive
|
||||
fetch-depth: ${{ matrix.fetch-depth }}
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -991,7 +1098,7 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
ref: a52f8621d26d5d9f54b80f74bda2d9eedff94693
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
@@ -1029,7 +1136,7 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
@@ -1108,7 +1215,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
@@ -1116,7 +1223,7 @@ jobs:
|
||||
fetch-depth: ${{ matrix.fetch-depth }}
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
|
||||
@@ -1161,13 +1268,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
submodules: true
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
fetch-depth: ${{ matrix.fetch-depth }}
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: build-assets
|
||||
- name: Dump GitHub context
|
||||
@@ -2154,7 +2261,7 @@ jobs:
|
||||
id: branch-name
|
||||
uses: tj-actions/branch-names@5250492686b253f06fa55861556d1027b067aeb5 # v9.0.2
|
||||
if: github.event_name == 'pull_request' && matrix.fetch-depth == 0
|
||||
- uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0
|
||||
- uses: nrwl/nx-set-shas@afb73a62d26e41464e9254689e1fd6122ee683c1 # v5.0.1
|
||||
id: last_successful_commit
|
||||
if: github.event_name == 'pull_request' && github.event.action != 'closed' && matrix.fetch-depth == 0
|
||||
with:
|
||||
|
||||
5
.github/workflows/update-readme.yml
vendored
5
.github/workflows/update-readme.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
||||
sync-assets:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
@@ -21,7 +21,6 @@ jobs:
|
||||
uses: tj-actions/auto-doc@b10ceedffd794ec29a8fa8700529f40c1b64a951 # v3.6.0
|
||||
with:
|
||||
use_code_blocks: true
|
||||
use_major_version: true
|
||||
use_tag_commit_hash: true
|
||||
|
||||
- name: Run remark
|
||||
@@ -42,7 +41,7 @@ jobs:
|
||||
|
||||
- name: Create Pull Request
|
||||
if: failure()
|
||||
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
|
||||
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
|
||||
with:
|
||||
base: "main"
|
||||
labels: "merge when passing"
|
||||
|
||||
4
.github/workflows/workflow-run-example.yml
vendored
4
.github/workflows/workflow-run-example.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
|
||||
146
HISTORY.md
146
HISTORY.md
@@ -1,5 +1,151 @@
|
||||
# Changelog
|
||||
|
||||
# [47.0.5](https://github.com/tj-actions/changed-files/compare/v47.0.4...v47.0.5) - (2026-03-03)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated README.md ([#2805](https://github.com/tj-actions/changed-files/issues/2805))
|
||||
|
||||
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> ([35dace0](https://github.com/tj-actions/changed-files/commit/35dace0375d89e25e78db5f0a44127b61f4e5c20)) - (github-actions[bot])
|
||||
- Updated README.md ([#2803](https://github.com/tj-actions/changed-files/issues/2803))
|
||||
|
||||
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
||||
Co-authored-by: Tonye Jack <jtonye@ymail.com> ([9ee99eb](https://github.com/tj-actions/changed-files/commit/9ee99eb5bda5d6a67fedcd50ecd24fb10add2f41)) - (github-actions[bot])
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- **deps-dev:** Bump @types/node from 25.3.2 to 25.3.3 ([#2814](https://github.com/tj-actions/changed-files/issues/2814)) ([22103cc](https://github.com/tj-actions/changed-files/commit/22103cc46bda19c2b464ffe86db46df6922fd323)) - (dependabot[bot])
|
||||
- **deps:** Bump github/codeql-action from 4.32.4 to 4.32.5 ([#2815](https://github.com/tj-actions/changed-files/issues/2815)) ([6c02e90](https://github.com/tj-actions/changed-files/commit/6c02e900a24488df269842eb1cf6ffe3391ce182)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump eslint-plugin-prettier from 5.5.4 to 5.5.5 ([#2764](https://github.com/tj-actions/changed-files/issues/2764)) ([05f9457](https://github.com/tj-actions/changed-files/commit/05f9457d921137103bb9687b6b571075f75a65f2)) - (dependabot[bot])
|
||||
- **deps:** Bump lodash and @types/lodash ([#2807](https://github.com/tj-actions/changed-files/issues/2807)) ([52ed872](https://github.com/tj-actions/changed-files/commit/52ed872dd71bea01a73ce5c7c595e78cb9566401)) - (dependabot[bot])
|
||||
- **deps:** Bump peter-evans/create-pull-request from 8.0.0 to 8.1.0 ([#2774](https://github.com/tj-actions/changed-files/issues/2774)) ([1cc5746](https://github.com/tj-actions/changed-files/commit/1cc574637935a98713e34cbd4e8cf01a985f942c)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump prettier from 3.7.4 to 3.8.1 ([#2775](https://github.com/tj-actions/changed-files/issues/2775)) ([de2962f](https://github.com/tj-actions/changed-files/commit/de2962f9f408abd241f7c1a8b6cac3ab44358d1a)) - (dependabot[bot])
|
||||
- **deps:** Bump github/codeql-action from 4.32.2 to 4.32.4 ([#2806](https://github.com/tj-actions/changed-files/issues/2806)) ([37e96cc](https://github.com/tj-actions/changed-files/commit/37e96ccbfefb9100f34f87d75c890c50c6e78d15)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump eslint-plugin-jest from 29.12.1 to 29.15.0 ([#2799](https://github.com/tj-actions/changed-files/issues/2799)) ([2180b0f](https://github.com/tj-actions/changed-files/commit/2180b0f05d03655e0bedd1657d13f6abc6313014)) - (dependabot[bot])
|
||||
- **deps:** Bump actions/upload-artifact from 6.0.0 to 7.0.0 ([#2809](https://github.com/tj-actions/changed-files/issues/2809)) ([cf021c1](https://github.com/tj-actions/changed-files/commit/cf021c158c722f81dea97fe5edc8bd2de1cc2bc1)) - (dependabot[bot])
|
||||
- **deps:** Bump actions/download-artifact from 7.0.0 to 8.0.0 ([#2810](https://github.com/tj-actions/changed-files/issues/2810)) ([b54ac6f](https://github.com/tj-actions/changed-files/commit/b54ac6f17f95fdc4ec5ee3bf355ea7c354dc9c53)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/node from 25.2.2 to 25.3.2 ([#2811](https://github.com/tj-actions/changed-files/issues/2811)) ([0f2a510](https://github.com/tj-actions/changed-files/commit/0f2a510bd7ac84bc12cdc52c2094298bc26b1692)) - (dependabot[bot])
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v47.0.4 ([#2802](https://github.com/tj-actions/changed-files/issues/2802))
|
||||
|
||||
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
||||
Co-authored-by: Tonye Jack <jtonye@ymail.com> ([b7ac303](https://github.com/tj-actions/changed-files/commit/b7ac303c8684d5e668c6c810e61a6fe32a53fe25)) - (github-actions[bot])
|
||||
|
||||
# [47.0.4](https://github.com/tj-actions/changed-files/compare/v47.0.3...v47.0.4) - (2026-02-17)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Release-tagger action to version 6.0.6 ([#2801](https://github.com/tj-actions/changed-files/issues/2801)) ([7dee1b0](https://github.com/tj-actions/changed-files/commit/7dee1b0c1557f278e5c7dc244927139d78c0e22a)) - (Tonye Jack)
|
||||
|
||||
# [47.0.3](https://github.com/tj-actions/changed-files/compare/v47.0.2...v47.0.3) - (2026-02-17)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Release-tagger action to version 6.0.0 ([#2800](https://github.com/tj-actions/changed-files/issues/2800)) ([28b28f6](https://github.com/tj-actions/changed-files/commit/28b28f6e4e9e3d997beb9dce86cfd8cf0ce7c7f6)) - (Tonye Jack)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- **deps:** Bump github/codeql-action from 4.31.10 to 4.32.2 ([#2790](https://github.com/tj-actions/changed-files/issues/2790)) ([875e6e5](https://github.com/tj-actions/changed-files/commit/875e6e5df8b8b00995fe6f0afd7ff1531ac1c47d)) - (dependabot[bot])
|
||||
|
||||
# [47.0.2](https://github.com/tj-actions/changed-files/compare/v47.0.1...v47.0.2) - (2026-02-09)
|
||||
|
||||
## <!-- 0 -->🚀 Features
|
||||
|
||||
- Add support for excluding symlinks and fix bug with commit not found ([#2770](https://github.com/tj-actions/changed-files/issues/2770)) ([8c4da28](https://github.com/tj-actions/changed-files/commit/8c4da285a3cb8b621b4a5cc251d6282b4b0a67a5)) - (Tonye Jack)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- Update test.yml ([#2781](https://github.com/tj-actions/changed-files/issues/2781)) ([caee9d9](https://github.com/tj-actions/changed-files/commit/caee9d94cec72c6797349cc07842c787d2cc9f74)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated README.md ([#2771](https://github.com/tj-actions/changed-files/issues/2771))
|
||||
|
||||
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> ([7d5bbf4](https://github.com/tj-actions/changed-files/commit/7d5bbf4e8d5c63a42c94e1c1bff2394247117e96)) - (github-actions[bot])
|
||||
- Updated README.md ([#2768](https://github.com/tj-actions/changed-files/issues/2768))
|
||||
|
||||
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> ([b3bb1f8](https://github.com/tj-actions/changed-files/commit/b3bb1f875362fa8c43662ad2fe58e3649eef37ac)) - (github-actions[bot])
|
||||
- Update README.md ([c6a5847](https://github.com/tj-actions/changed-files/commit/c6a5847dac4514198bf58e6181f70e2e83e8c49a)) - (Tonye Jack)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- **deps:** Bump actions/setup-node from 6.1.0 to 6.2.0 ([#2766](https://github.com/tj-actions/changed-files/issues/2766)) ([8cba46e](https://github.com/tj-actions/changed-files/commit/8cba46e29c11878d930bca7870bb54394d3e8b21)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/node from 25.0.0 to 25.2.2 ([#2793](https://github.com/tj-actions/changed-files/issues/2793)) ([925972f](https://github.com/tj-actions/changed-files/commit/925972f627ac3ba50ec787d29479d19d5fd76899)) - (dependabot[bot])
|
||||
- **deps:** Bump @stdlib/utils-convert-path from 0.2.2 to 0.2.3 ([#2795](https://github.com/tj-actions/changed-files/issues/2795)) ([a98754b](https://github.com/tj-actions/changed-files/commit/a98754bb6adb8a47a1fc3d33dc1c465efdbb5ff8)) - (dependabot[bot])
|
||||
- **deps:** Bump actions/checkout from 6.0.1 to 6.0.2 ([#2777](https://github.com/tj-actions/changed-files/issues/2777)) ([9c13e73](https://github.com/tj-actions/changed-files/commit/9c13e73478ad1bfebb10d95fdbaa6e62f519ddf8)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/lodash from 4.17.21 to 4.17.23 ([#2759](https://github.com/tj-actions/changed-files/issues/2759)) ([16d791c](https://github.com/tj-actions/changed-files/commit/16d791cc10d1511516254b9487f4f3b5e2b7c7fe)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump eslint-plugin-jest from 29.11.0 to 29.12.1 ([#2756](https://github.com/tj-actions/changed-files/issues/2756)) ([8e056de](https://github.com/tj-actions/changed-files/commit/8e056dec7d4b91f5a0f30055750dd52cad27f8c2)) - (dependabot[bot])
|
||||
- **deps:** Bump github/codeql-action from 4.31.7 to 4.31.10 ([#2761](https://github.com/tj-actions/changed-files/issues/2761)) ([078e2bc](https://github.com/tj-actions/changed-files/commit/078e2bcd1ef8f09b23d21604c2a9e3c26173126d)) - (dependabot[bot])
|
||||
- Update matrix-example.yml ([#2752](https://github.com/tj-actions/changed-files/issues/2752)) ([2f2f6cf](https://github.com/tj-actions/changed-files/commit/2f2f6cf099167fa7d7c6aba8fc0421327e181a5a)) - (Tonye Jack)
|
||||
- Update dist ([#2769](https://github.com/tj-actions/changed-files/issues/2769)) ([8262acc](https://github.com/tj-actions/changed-files/commit/8262acc55927280c6067c697c63355e0fed93fe3)) - (Tonye Jack)
|
||||
- **deps:** Bump @actions/core from 2.0.0 to 2.0.2 ([#2757](https://github.com/tj-actions/changed-files/issues/2757)) ([daf9d2d](https://github.com/tj-actions/changed-files/commit/daf9d2d49788d229faa7bd34252ab8ded7f087f3)) - (dependabot[bot])
|
||||
- **deps:** Bump actions/download-artifact from 6.0.0 to 7.0.0 ([#2743](https://github.com/tj-actions/changed-files/issues/2743)) ([3c4bc6f](https://github.com/tj-actions/changed-files/commit/3c4bc6fa0ca4718d438e0a4bd3ea81fbb0e6e2be)) - (dependabot[bot])
|
||||
- **deps:** Bump actions/upload-artifact from 5.0.0 to 6.0.0 ([#2741](https://github.com/tj-actions/changed-files/issues/2741)) ([cd7fbbc](https://github.com/tj-actions/changed-files/commit/cd7fbbcebba7beb1540c870b9c46a6cbde115b14)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump eslint-plugin-jest from 29.2.1 to 29.11.0 ([#2751](https://github.com/tj-actions/changed-files/issues/2751)) ([60a1a28](https://github.com/tj-actions/changed-files/commit/60a1a28396b0c1d4aad5140d0b51b82451114f8b)) - (dependabot[bot])
|
||||
|
||||
# [47.0.1](https://github.com/tj-actions/changed-files/compare/v47.0.0...v47.0.1) - (2025-12-11)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated README.md ([#2723](https://github.com/tj-actions/changed-files/issues/2723))
|
||||
|
||||
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> ([043285e](https://github.com/tj-actions/changed-files/commit/043285ef6ceb955e13e0ecc67f4cba137ea96922)) - (github-actions[bot])
|
||||
- Update README.md ([4206138](https://github.com/tj-actions/changed-files/commit/4206138f174379c379efaa0f5c1d1f82a96eac0a)) - (Tonye Jack)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- **deps:** Bump actions/checkout from 6.0.0 to 6.0.1 ([#2729](https://github.com/tj-actions/changed-files/issues/2729)) ([e002140](https://github.com/tj-actions/changed-files/commit/e0021407031f5be11a464abee9a0776171c79891)) - (dependabot[bot])
|
||||
- **deps:** Bump @actions/core from 1.11.1 to 2.0.0 ([#2736](https://github.com/tj-actions/changed-files/issues/2736)) ([01ddfae](https://github.com/tj-actions/changed-files/commit/01ddfae411b529a02e2d03077b041f6b41474069)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump prettier from 3.7.1 to 3.7.4 ([#2731](https://github.com/tj-actions/changed-files/issues/2731)) ([a364493](https://github.com/tj-actions/changed-files/commit/a364493bbb5332cdb9b07a6cb637a79ebf052ddf)) - (dependabot[bot])
|
||||
- **deps:** Bump actions/setup-node from 6.0.0 to 6.1.0 ([#2730](https://github.com/tj-actions/changed-files/issues/2730)) ([45a2aae](https://github.com/tj-actions/changed-files/commit/45a2aae7eeec78636ada59594c9d58df5c5d8ba8)) - (dependabot[bot])
|
||||
- **deps:** Bump github/codeql-action from 4.31.5 to 4.31.7 ([#2732](https://github.com/tj-actions/changed-files/issues/2732)) ([a4f6de3](https://github.com/tj-actions/changed-files/commit/a4f6de32d53e0995453c14713fda9f8dd09bc182)) - (dependabot[bot])
|
||||
- **deps:** Bump peter-evans/create-pull-request from 7.0.9 to 8.0.0 ([#2735](https://github.com/tj-actions/changed-files/issues/2735)) ([95fbe9b](https://github.com/tj-actions/changed-files/commit/95fbe9b431e702ea6dfadf3f1811923495dc1eac)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump ts-jest from 29.4.5 to 29.4.6 ([#2727](https://github.com/tj-actions/changed-files/issues/2727)) ([b3b9724](https://github.com/tj-actions/changed-files/commit/b3b97244a99c6d2992291fbcecae86f413bd8e6e)) - (dependabot[bot])
|
||||
- **deps:** Bump @actions/exec from 1.1.1 to 2.0.0 ([#2737](https://github.com/tj-actions/changed-files/issues/2737)) ([503bc3e](https://github.com/tj-actions/changed-files/commit/503bc3e7d783e7b28f62b3e3dede0ba735d9a9b2)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/node from 24.10.1 to 25.0.0 ([#2738](https://github.com/tj-actions/changed-files/issues/2738)) ([3e9e5a2](https://github.com/tj-actions/changed-files/commit/3e9e5a2aa243322d676bdd4f95e443b2cc82f6ee)) - (dependabot[bot])
|
||||
- **deps:** Bump yaml from 2.8.1 to 2.8.2 ([#2724](https://github.com/tj-actions/changed-files/issues/2724)) ([2b6c719](https://github.com/tj-actions/changed-files/commit/2b6c71984539e47a42c54691abdbccf92ac13d5b)) - (dependabot[bot])
|
||||
- **deps:** Bump peter-evans/create-pull-request from 7.0.8 to 7.0.9 ([#2717](https://github.com/tj-actions/changed-files/issues/2717)) ([abdd2f6](https://github.com/tj-actions/changed-files/commit/abdd2f68ea150cee8f236d4a9fb4e0f2491abf1b)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/lodash from 4.17.20 to 4.17.21 ([#2718](https://github.com/tj-actions/changed-files/issues/2718)) ([1d08ab2](https://github.com/tj-actions/changed-files/commit/1d08ab228c06cfdb5c92a6be6fb2e03654e2410c)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump eslint-plugin-jest from 29.1.0 to 29.2.1 ([#2719](https://github.com/tj-actions/changed-files/issues/2719)) ([085eb10](https://github.com/tj-actions/changed-files/commit/085eb10d7ef84ec5ab690becdd4072966e781924)) - (dependabot[bot])
|
||||
- **deps:** Bump github/codeql-action from 4.31.4 to 4.31.5 ([#2720](https://github.com/tj-actions/changed-files/issues/2720)) ([72321d1](https://github.com/tj-actions/changed-files/commit/72321d1f003ac6191c4d5c7781eed4241a728447)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump prettier from 3.6.2 to 3.7.1 ([#2722](https://github.com/tj-actions/changed-files/issues/2722)) ([8c66df4](https://github.com/tj-actions/changed-files/commit/8c66df4f78c44069a58c4517f775d02211a2b06b)) - (dependabot[bot])
|
||||
- **deps:** Bump nrwl/nx-set-shas from 4.3.3 to 4.4.0 ([#2712](https://github.com/tj-actions/changed-files/issues/2712)) ([6da3c88](https://github.com/tj-actions/changed-files/commit/6da3c88b60ebf09464ada9b06fba5b6f2d34bb94)) - (dependabot[bot])
|
||||
- **deps:** Bump actions/checkout from 5.0.0 to 5.0.1 ([#2714](https://github.com/tj-actions/changed-files/issues/2714)) ([48b6e97](https://github.com/tj-actions/changed-files/commit/48b6e9756da9107e9b08fcb676b292caaac1140b)) - (dependabot[bot])
|
||||
- **deps:** Bump github/codeql-action from 4.31.2 to 4.31.4 ([#2715](https://github.com/tj-actions/changed-files/issues/2715)) ([31e663c](https://github.com/tj-actions/changed-files/commit/31e663cd71ad1f011b9f9e87f3a710e5ebb9a658)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/node from 24.10.0 to 24.10.1 ([#2711](https://github.com/tj-actions/changed-files/issues/2711)) ([46fd332](https://github.com/tj-actions/changed-files/commit/46fd332157a59040c95f13a55162240a4b789b6c)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump eslint-plugin-jest from 29.0.1 to 29.1.0 ([#2710](https://github.com/tj-actions/changed-files/issues/2710)) ([2d752ab](https://github.com/tj-actions/changed-files/commit/2d752abc95ba0255af33a2b4d5de03df3954cdf2)) - (dependabot[bot])
|
||||
- **deps:** Bump @octokit/rest from 22.0.0 to 22.0.1 ([#2705](https://github.com/tj-actions/changed-files/issues/2705)) ([7006987](https://github.com/tj-actions/changed-files/commit/70069877f29101175ed2b055d210fe8b1d54d7d7)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/node from 24.9.2 to 24.10.0 ([#2707](https://github.com/tj-actions/changed-files/issues/2707)) ([5df1bad](https://github.com/tj-actions/changed-files/commit/5df1bad3a527ede089326306d1296297ab0d58d2)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump ts-jest from 29.4.4 to 29.4.5 ([#2688](https://github.com/tj-actions/changed-files/issues/2688)) ([0ff001d](https://github.com/tj-actions/changed-files/commit/0ff001de0805038ff3f118de4875002200057732)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/micromatch from 4.0.9 to 4.0.10 ([#2699](https://github.com/tj-actions/changed-files/issues/2699)) ([52b808a](https://github.com/tj-actions/changed-files/commit/52b808ab08e9b9ef06f5af6d3fea1d639da110e0)) - (dependabot[bot])
|
||||
- **deps:** Bump actions/download-artifact from 5.0.0 to 6.0.0 ([#2697](https://github.com/tj-actions/changed-files/issues/2697)) ([d6388b7](https://github.com/tj-actions/changed-files/commit/d6388b78bdbccf5326651d609098231d6e08f14a)) - (dependabot[bot])
|
||||
- **deps:** Bump actions/upload-artifact from 4.6.2 to 5.0.0 ([#2698](https://github.com/tj-actions/changed-files/issues/2698)) ([cf5e80a](https://github.com/tj-actions/changed-files/commit/cf5e80aa29743eb7ed7921b82bf9209a55d09fcd)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/node from 24.9.1 to 24.9.2 ([#2700](https://github.com/tj-actions/changed-files/issues/2700)) ([cff4543](https://github.com/tj-actions/changed-files/commit/cff45432265e1bbeebeaf038878246c6749a68b5)) - (dependabot[bot])
|
||||
- **deps:** Bump github/codeql-action from 4.30.9 to 4.31.2 ([#2702](https://github.com/tj-actions/changed-files/issues/2702)) ([9dc1b5f](https://github.com/tj-actions/changed-files/commit/9dc1b5f80eeefcffeb145deb4dcc0def0d8cae70)) - (dependabot[bot])
|
||||
- **deps:** Bump actions/setup-node from 5.0.0 to 6.0.0 ([#2690](https://github.com/tj-actions/changed-files/issues/2690)) ([dbf178c](https://github.com/tj-actions/changed-files/commit/dbf178ceecb9304128c8e0648591d71208c6e2c9)) - (dependabot[bot])
|
||||
- **deps:** Bump github/codeql-action from 3.30.6 to 4.30.9 ([#2693](https://github.com/tj-actions/changed-files/issues/2693)) ([1900262](https://github.com/tj-actions/changed-files/commit/19002623031eba72900680c5deed5ee6333dbc12)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/node from 24.6.2 to 24.9.1 ([#2695](https://github.com/tj-actions/changed-files/issues/2695)) ([27e5d78](https://github.com/tj-actions/changed-files/commit/27e5d78f9b6a61e3160a2fe263cca91675c08fa0)) - (dependabot[bot])
|
||||
- **deps:** Bump github/codeql-action from 3.30.5 to 3.30.6 ([#2680](https://github.com/tj-actions/changed-files/issues/2680)) ([d03a93c](https://github.com/tj-actions/changed-files/commit/d03a93c0dbfac6d6dd6a0d8a5e7daff992b07449)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/node from 24.6.1 to 24.6.2 ([#2681](https://github.com/tj-actions/changed-files/issues/2681)) ([df9aabc](https://github.com/tj-actions/changed-files/commit/df9aabcdefd7f1fb2dced9bd92194d9589ca6cdd)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/node from 24.5.2 to 24.6.1 ([#2679](https://github.com/tj-actions/changed-files/issues/2679)) ([d6f020b](https://github.com/tj-actions/changed-files/commit/d6f020b1d9d7992dcf07f03b14d42832f866b495)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump jest from 30.1.3 to 30.2.0 ([#2677](https://github.com/tj-actions/changed-files/issues/2677)) ([212f9a7](https://github.com/tj-actions/changed-files/commit/212f9a7760ad2b8eb511185b841f3725a62c2ae0)) - (dependabot[bot])
|
||||
- **deps:** Bump github/codeql-action from 3.30.4 to 3.30.5 ([#2676](https://github.com/tj-actions/changed-files/issues/2676)) ([0dc2215](https://github.com/tj-actions/changed-files/commit/0dc2215e58306bc41cf2326fa5a2e207ea3a7e57)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump ts-jest from 29.4.3 to 29.4.4 ([#2672](https://github.com/tj-actions/changed-files/issues/2672)) ([28cf3ad](https://github.com/tj-actions/changed-files/commit/28cf3adc4b6dbff2746d5216da021a10e53b4f58)) - (dependabot[bot])
|
||||
- **deps:** Bump github/codeql-action from 3.30.3 to 3.30.4 ([#2675](https://github.com/tj-actions/changed-files/issues/2675)) ([0b7adf7](https://github.com/tj-actions/changed-files/commit/0b7adf79637fa585fd14734e9ed06d9036a67c3d)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/node from 24.4.0 to 24.5.2 ([#2669](https://github.com/tj-actions/changed-files/issues/2669)) ([4563c72](https://github.com/tj-actions/changed-files/commit/4563c729c555b4141fac99c80f699f571219b836)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/uuid from 10.0.0 to 11.0.0 ([#2668](https://github.com/tj-actions/changed-files/issues/2668)) ([257f3ac](https://github.com/tj-actions/changed-files/commit/257f3acedc7e3cf12510ef211c6d89d140bd64aa)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @vercel/ncc from 0.38.3 to 0.38.4 ([#2670](https://github.com/tj-actions/changed-files/issues/2670)) ([cac596e](https://github.com/tj-actions/changed-files/commit/cac596ed08f1624de93e8c83fa36f0a0aff72311)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump ts-jest from 29.4.1 to 29.4.3 ([#2671](https://github.com/tj-actions/changed-files/issues/2671)) ([4fb6914](https://github.com/tj-actions/changed-files/commit/4fb6914af96ff7e05cc41c37b85b528daf830762)) - (dependabot[bot])
|
||||
- **deps-dev:** Bump @types/node from 24.3.1 to 24.4.0 ([#2664](https://github.com/tj-actions/changed-files/issues/2664)) ([2371aa7](https://github.com/tj-actions/changed-files/commit/2371aa7cd265d2e8a0213dc9e2a70dfcfb8fa114)) - (dependabot[bot])
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v47 ([#2663](https://github.com/tj-actions/changed-files/issues/2663))
|
||||
|
||||
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> ([1ac6096](https://github.com/tj-actions/changed-files/commit/1ac60965030588f3b867cdd4a3900f37ec99970c)) - (github-actions[bot])
|
||||
|
||||
# [47.0.0](https://github.com/tj-actions/changed-files/compare/v46.0.5...v47.0.0) - (2025-09-13)
|
||||
|
||||
## <!-- 0 -->🚀 Features
|
||||
|
||||
89
README.md
89
README.md
@@ -5,7 +5,6 @@
|
||||
|
||||
[](https://app.codacy.com/gh/tj-actions/changed-files/dashboard?utm_source=gh\&utm_medium=referral\&utm_content=\&utm_campaign=Badge_grade)
|
||||
[](https://github.com/tj-actions/changed-files/actions/workflows/test.yml)
|
||||
[](https://github.com/tj-actions/changed-files/actions/workflows/sync-release-version.yml)
|
||||
|
||||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
||||
|
||||
@@ -45,6 +44,7 @@ Effortlessly track all changed files and directories relative to a target branch
|
||||
* [Credits 👏](#credits-)
|
||||
* [Report Bugs 🐛](#report-bugs-)
|
||||
* [Contributors ✨](#contributors-)
|
||||
* [💼 Automate Your Job Search Too](#-automate-your-job-search-too)
|
||||
|
||||
## Features 🚀
|
||||
|
||||
@@ -122,7 +122,7 @@ jobs:
|
||||
# -----------------------------------------------------------------------------------------------------------
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
# To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g
|
||||
# with:
|
||||
# since_last_remote_commit: true
|
||||
@@ -140,7 +140,7 @@ jobs:
|
||||
# -----------------------------------------------------------------------------------------------------------
|
||||
- name: Get all changed markdown files
|
||||
id: changed-markdown-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
# Avoid using single or double quotes for multiline patterns
|
||||
files: |
|
||||
@@ -161,7 +161,7 @@ jobs:
|
||||
# -----------------------------------------------------------------------------------------------------------
|
||||
- name: Get all test, doc and src files that have changed
|
||||
id: changed-files-yaml
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
files_yaml: |
|
||||
doc:
|
||||
@@ -196,7 +196,7 @@ jobs:
|
||||
# -----------------------------------------------------------------------------------------------------------
|
||||
- name: Get changed files in the docs folder
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
files: docs/*.{js,html} # Alternatively using: `docs/**`
|
||||
files_ignore: docs/static.js
|
||||
@@ -238,7 +238,7 @@ jobs:
|
||||
steps:
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
|
||||
- name: List all changed files
|
||||
env:
|
||||
@@ -281,7 +281,7 @@ jobs:
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
# NOTE: `since_last_remote_commit: true` is implied by default and falls back to the previous local commit.
|
||||
|
||||
- name: List all changed files
|
||||
@@ -328,7 +328,7 @@ Support this project with a :star:
|
||||
<!-- AUTO-DOC-INPUT:START - Do not remove or modify this section -->
|
||||
|
||||
```yaml
|
||||
- uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
- uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
id: changed-files
|
||||
with:
|
||||
# Github API URL.
|
||||
@@ -411,6 +411,11 @@ Support this project with a :star:
|
||||
# Default: "false"
|
||||
exclude_submodules: ''
|
||||
|
||||
# Exclude symlinks from changed files.
|
||||
# Type: boolean
|
||||
# Default: "false"
|
||||
exclude_symlinks: ''
|
||||
|
||||
# Fail when the initial diff
|
||||
# fails.
|
||||
# Type: boolean
|
||||
@@ -675,6 +680,12 @@ Support this project with a :star:
|
||||
# Default: "false"
|
||||
skip_initial_fetch: ''
|
||||
|
||||
# Do not fail when base
|
||||
# and head SHAs are identical.
|
||||
# Type: boolean
|
||||
# Default: "false"
|
||||
skip_same_sha: ''
|
||||
|
||||
# Tags pattern to ignore.
|
||||
# Type: string
|
||||
tags_ignore_pattern: ''
|
||||
@@ -814,7 +825,7 @@ The format of the version string is as follows:
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
...
|
||||
```
|
||||
|
||||
@@ -827,7 +838,7 @@ The format of the version string is as follows:
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
safe_output: false # set to false because we are using an environment variable to store the output and avoid command injection.
|
||||
|
||||
@@ -850,7 +861,7 @@ The format of the version string is as follows:
|
||||
...
|
||||
- name: Get all changed files and use a comma separator in the output
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
separator: ","
|
||||
...
|
||||
@@ -867,7 +878,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
|
||||
- name: List all added files
|
||||
env:
|
||||
@@ -890,7 +901,7 @@ See [outputs](#outputs) for a list of all available outputs.
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
|
||||
- name: Run a step if my-file.txt was modified
|
||||
if: contains(steps.changed-files.outputs.modified_files, 'my-file.txt')
|
||||
@@ -911,7 +922,7 @@ See [outputs](#outputs) for a list of all available outputs.
|
||||
|
||||
- name: Get changed files and write the outputs to a Txt file
|
||||
id: changed-files-write-output-files-txt
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
write_output_files: true
|
||||
|
||||
@@ -930,7 +941,7 @@ See [outputs](#outputs) for a list of all available outputs.
|
||||
...
|
||||
- name: Get changed files and write the outputs to a JSON file
|
||||
id: changed-files-write-output-files-json
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
json: true
|
||||
write_output_files: true
|
||||
@@ -950,7 +961,7 @@ See [outputs](#outputs) for a list of all available outputs.
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
files: |
|
||||
my-file.txt
|
||||
@@ -973,7 +984,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
files: |
|
||||
my-file.txt
|
||||
@@ -1024,7 +1035,7 @@ See [outputs](#outputs) for a list of all available outputs.
|
||||
...
|
||||
- name: Get changed files using a source file or list of file(s) to populate to files input.
|
||||
id: changed-files-specific-source-file
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
files_from_source_file: test/changed-files-list.txt
|
||||
...
|
||||
@@ -1041,7 +1052,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed files using 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@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
files_from_source_file: |
|
||||
test/changed-files-list.txt
|
||||
@@ -1062,7 +1073,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed files using a different SHA
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
sha: ${{ github.event.pull_request.head.sha }}
|
||||
...
|
||||
@@ -1079,7 +1090,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed files using a different base SHA
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
base_sha: ${{ github.event.pull_request.base.sha }}
|
||||
...
|
||||
@@ -1111,7 +1122,7 @@ jobs:
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
|
||||
- name: List changed files
|
||||
env:
|
||||
@@ -1121,7 +1132,7 @@ jobs:
|
||||
|
||||
- name: Get changed files in the .github folder
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
files: .github/**
|
||||
|
||||
@@ -1152,7 +1163,7 @@ See [inputs](#inputs) for more information.
|
||||
|
||||
- name: Run changed-files with defaults in dir1
|
||||
id: changed-files-for-dir1
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
path: dir1
|
||||
|
||||
@@ -1177,13 +1188,13 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Run changed-files with quotepath disabled
|
||||
id: changed-files-quotepath
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
quotepath: "false"
|
||||
|
||||
- name: Run changed-files with quotepath disabled for a specified list of file(s)
|
||||
id: changed-files-quotepath-specific
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
files: test/test-è.txt
|
||||
quotepath: "false"
|
||||
@@ -1216,7 +1227,7 @@ See [inputs](#inputs) for more information.
|
||||
|
||||
- name: Run changed-files with the commit of the last successful test workflow run
|
||||
id: changed-files-base-sha-push
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
base_sha: ${{ steps.last_successful_commit_push.outputs.base }}
|
||||
...
|
||||
@@ -1243,7 +1254,7 @@ See [inputs](#inputs) for more information.
|
||||
|
||||
- name: Run changed-files with the commit of the last successful test workflow run on the main branch
|
||||
id: changed-files-base-sha-pull-request
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
base_sha: ${{ steps.last_successful_commit_pull_request.outputs.base }}
|
||||
...
|
||||
@@ -1269,7 +1280,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Run changed-files with dir_names
|
||||
id: changed-files-dir-names
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
dir_names: "true"
|
||||
...
|
||||
@@ -1286,7 +1297,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Run changed-files with JSON output
|
||||
id: changed-files-json
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
json: "true"
|
||||
...
|
||||
@@ -1303,13 +1314,13 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed-files since 2022-08-19
|
||||
id: changed-files-since
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
since: "2022-08-19"
|
||||
|
||||
- name: Get changed-files until 2022-08-20
|
||||
id: changed-files-until
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
|
||||
with:
|
||||
until: "2022-08-20"
|
||||
...
|
||||
@@ -1459,3 +1470,17 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
||||
|
||||
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
||||
|
||||
***
|
||||
|
||||
## 💼 Automate Your Job Search Too
|
||||
|
||||
You automate your CI/CD. Automate your job applications too.
|
||||
|
||||
**[ApplySmart AI](https://applysmart.ai)** helps you:
|
||||
|
||||
* Generate tailored resumes & cover letters in seconds
|
||||
* Extract job details from any posting automatically
|
||||
* Track applications like you track deployments
|
||||
|
||||
**Free tier available** → [applysmart.ai](https://applysmart.ai)
|
||||
|
||||
@@ -227,6 +227,14 @@ inputs:
|
||||
description: "Exclude changes to submodules."
|
||||
required: false
|
||||
default: "false"
|
||||
exclude_symlinks:
|
||||
description: "Exclude symlinks from changed files."
|
||||
required: false
|
||||
default: "false"
|
||||
skip_same_sha:
|
||||
description: "Do not fail when base and head SHAs are identical."
|
||||
required: false
|
||||
default: "false"
|
||||
fetch_missing_history_max_retries:
|
||||
description: "Maximum number of retries to fetch missing history."
|
||||
required: false
|
||||
|
||||
1845
dist/index.js
generated
vendored
1845
dist/index.js
generated
vendored
File diff suppressed because it is too large
Load Diff
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -12,6 +12,7 @@ exports[`getInputs should correctly parse boolean inputs 1`] = `
|
||||
"dirNamesIncludeFilesSeparator": "",
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": "false",
|
||||
"excludeSymlinks": "false",
|
||||
"failOnInitialDiffError": "false",
|
||||
"failOnSubmoduleDiffError": "false",
|
||||
"fetchAdditionalSubmoduleHistory": "false",
|
||||
@@ -53,6 +54,7 @@ exports[`getInputs should correctly parse boolean inputs 1`] = `
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": "false",
|
||||
"skipInitialFetch": "true",
|
||||
"skipSameSha": "false",
|
||||
"tagsIgnorePattern": "",
|
||||
"tagsPattern": "*",
|
||||
"token": "",
|
||||
@@ -76,6 +78,7 @@ exports[`getInputs should correctly parse numeric inputs 1`] = `
|
||||
"dirNamesMaxDepth": 2,
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": false,
|
||||
"excludeSymlinks": false,
|
||||
"failOnInitialDiffError": false,
|
||||
"failOnSubmoduleDiffError": false,
|
||||
"fetchAdditionalSubmoduleHistory": false,
|
||||
@@ -115,6 +118,7 @@ exports[`getInputs should correctly parse numeric inputs 1`] = `
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": false,
|
||||
"skipInitialFetch": false,
|
||||
"skipSameSha": false,
|
||||
"tagsIgnorePattern": "",
|
||||
"tagsPattern": "",
|
||||
"token": "",
|
||||
@@ -137,6 +141,7 @@ exports[`getInputs should correctly parse string inputs 1`] = `
|
||||
"dirNamesIncludeFilesSeparator": "",
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": false,
|
||||
"excludeSymlinks": false,
|
||||
"failOnInitialDiffError": false,
|
||||
"failOnSubmoduleDiffError": false,
|
||||
"fetchAdditionalSubmoduleHistory": false,
|
||||
@@ -175,6 +180,7 @@ exports[`getInputs should correctly parse string inputs 1`] = `
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": false,
|
||||
"skipInitialFetch": false,
|
||||
"skipSameSha": false,
|
||||
"tagsIgnorePattern": "",
|
||||
"tagsPattern": "",
|
||||
"token": "token",
|
||||
@@ -198,6 +204,7 @@ exports[`getInputs should handle invalid numeric inputs correctly 1`] = `
|
||||
"dirNamesMaxDepth": 2,
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": false,
|
||||
"excludeSymlinks": false,
|
||||
"failOnInitialDiffError": false,
|
||||
"failOnSubmoduleDiffError": false,
|
||||
"fetchAdditionalSubmoduleHistory": false,
|
||||
@@ -237,6 +244,7 @@ exports[`getInputs should handle invalid numeric inputs correctly 1`] = `
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": false,
|
||||
"skipInitialFetch": false,
|
||||
"skipSameSha": false,
|
||||
"tagsIgnorePattern": "",
|
||||
"tagsPattern": "",
|
||||
"token": "",
|
||||
@@ -260,6 +268,7 @@ exports[`getInputs should handle negative numeric inputs correctly 1`] = `
|
||||
"dirNamesMaxDepth": -2,
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": false,
|
||||
"excludeSymlinks": false,
|
||||
"failOnInitialDiffError": false,
|
||||
"failOnSubmoduleDiffError": false,
|
||||
"fetchAdditionalSubmoduleHistory": false,
|
||||
@@ -299,6 +308,7 @@ exports[`getInputs should handle negative numeric inputs correctly 1`] = `
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": false,
|
||||
"skipInitialFetch": false,
|
||||
"skipSameSha": false,
|
||||
"tagsIgnorePattern": "",
|
||||
"tagsPattern": "",
|
||||
"token": "",
|
||||
@@ -321,6 +331,7 @@ exports[`getInputs should return default values when no inputs are provided 1`]
|
||||
"dirNamesIncludeFilesSeparator": "",
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": false,
|
||||
"excludeSymlinks": false,
|
||||
"failOnInitialDiffError": false,
|
||||
"failOnSubmoduleDiffError": false,
|
||||
"fetchAdditionalSubmoduleHistory": false,
|
||||
@@ -362,6 +373,7 @@ exports[`getInputs should return default values when no inputs are provided 1`]
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": false,
|
||||
"skipInitialFetch": false,
|
||||
"skipSameSha": false,
|
||||
"tagsIgnorePattern": "",
|
||||
"tagsPattern": "*",
|
||||
"token": "",
|
||||
|
||||
@@ -639,6 +639,8 @@ describe('utils test', () => {
|
||||
negationPatternsFirst: false,
|
||||
useRestApi: false,
|
||||
excludeSubmodules: false,
|
||||
excludeSymlinks: false,
|
||||
skipSameSha: false,
|
||||
fetchMissingHistoryMaxRetries: 20,
|
||||
usePosixPathSeparator: false,
|
||||
tagsPattern: '*',
|
||||
|
||||
@@ -16,6 +16,8 @@ import {
|
||||
getFilteredChangedFiles,
|
||||
gitRenamedFiles,
|
||||
gitSubmoduleDiffSHA,
|
||||
isSymlinkInGitTree,
|
||||
isSymlinkOnDisk,
|
||||
isWindows,
|
||||
jsonOutput,
|
||||
setArrayOutput
|
||||
@@ -220,7 +222,8 @@ export const getAllDiffFiles = async ({
|
||||
outputRenamedFilesAsDeletedAndAdded,
|
||||
fetchAdditionalSubmoduleHistory,
|
||||
failOnInitialDiffError,
|
||||
failOnSubmoduleDiffError
|
||||
failOnSubmoduleDiffError,
|
||||
submoduleShas
|
||||
}: {
|
||||
workingDirectory: string
|
||||
diffSubmodule: boolean
|
||||
@@ -230,6 +233,7 @@ export const getAllDiffFiles = async ({
|
||||
fetchAdditionalSubmoduleHistory: boolean
|
||||
failOnInitialDiffError: boolean
|
||||
failOnSubmoduleDiffError: boolean
|
||||
submoduleShas?: Record<string, {previousSha?: string; currentSha?: string}>
|
||||
}): Promise<ChangedFiles> => {
|
||||
const files = await getAllChangedFiles({
|
||||
cwd: workingDirectory,
|
||||
@@ -256,6 +260,9 @@ export const getAllDiffFiles = async ({
|
||||
)
|
||||
|
||||
if (submoduleShaResult.currentSha && submoduleShaResult.previousSha) {
|
||||
if (submoduleShas) {
|
||||
submoduleShas[submodulePath] = submoduleShaResult
|
||||
}
|
||||
let diff = '...'
|
||||
|
||||
if (
|
||||
@@ -300,6 +307,139 @@ export const getAllDiffFiles = async ({
|
||||
return files
|
||||
}
|
||||
|
||||
export const filterSymlinksFromChangedFiles = async ({
|
||||
changedFiles,
|
||||
workingDirectory,
|
||||
diffResult,
|
||||
submodulePaths,
|
||||
submoduleShas
|
||||
}: {
|
||||
changedFiles: ChangedFiles
|
||||
workingDirectory: string
|
||||
diffResult: DiffResult
|
||||
submodulePaths: string[]
|
||||
submoduleShas?: Record<string, {previousSha?: string; currentSha?: string}>
|
||||
}): Promise<ChangedFiles> => {
|
||||
const filtered: ChangedFiles = {
|
||||
[ChangeTypeEnum.Added]: [],
|
||||
[ChangeTypeEnum.Copied]: [],
|
||||
[ChangeTypeEnum.Deleted]: [],
|
||||
[ChangeTypeEnum.Modified]: [],
|
||||
[ChangeTypeEnum.Renamed]: [],
|
||||
[ChangeTypeEnum.TypeChanged]: [],
|
||||
[ChangeTypeEnum.Unmerged]: [],
|
||||
[ChangeTypeEnum.Unknown]: []
|
||||
}
|
||||
|
||||
const cache = new Map<string, boolean>()
|
||||
const diskCache = new Map<string, boolean>()
|
||||
|
||||
const getSubmoduleContext = (
|
||||
filePath: string
|
||||
): {
|
||||
cwd: string
|
||||
relativePath: string
|
||||
currentSha: string
|
||||
previousSha: string
|
||||
isSubmoduleRoot: boolean
|
||||
} => {
|
||||
const submodulePath = submodulePaths.find(p =>
|
||||
filePath.startsWith(`${p}${path.sep}`)
|
||||
)
|
||||
if (!submodulePath) {
|
||||
return {
|
||||
cwd: workingDirectory,
|
||||
relativePath: filePath,
|
||||
currentSha: diffResult.currentSha,
|
||||
previousSha: diffResult.previousSha,
|
||||
isSubmoduleRoot: false
|
||||
}
|
||||
}
|
||||
|
||||
if (filePath === submodulePath) {
|
||||
return {
|
||||
cwd: workingDirectory,
|
||||
relativePath: filePath,
|
||||
currentSha: diffResult.currentSha,
|
||||
previousSha: diffResult.previousSha,
|
||||
isSubmoduleRoot: true
|
||||
}
|
||||
}
|
||||
|
||||
const submoduleWorkingDirectory = path.join(workingDirectory, submodulePath)
|
||||
const relativePath = filePath.substring(submodulePath.length + 1)
|
||||
const submoduleSha = submoduleShas?.[submodulePath]
|
||||
|
||||
return {
|
||||
cwd: submoduleWorkingDirectory,
|
||||
relativePath,
|
||||
currentSha: submoduleSha?.currentSha || diffResult.currentSha,
|
||||
previousSha: submoduleSha?.previousSha || diffResult.previousSha,
|
||||
isSubmoduleRoot: false
|
||||
}
|
||||
}
|
||||
|
||||
const isSymlinkCached = async ({
|
||||
cwd,
|
||||
filePath,
|
||||
sha,
|
||||
preferDisk
|
||||
}: {
|
||||
cwd: string
|
||||
filePath: string
|
||||
sha: string
|
||||
preferDisk: boolean
|
||||
}): Promise<boolean> => {
|
||||
if (preferDisk) {
|
||||
const diskKey = `${cwd}|disk|${filePath}`
|
||||
const cachedDisk = diskCache.get(diskKey)
|
||||
if (cachedDisk !== undefined) {
|
||||
return cachedDisk
|
||||
}
|
||||
const diskResult = await isSymlinkOnDisk({cwd, filePath})
|
||||
diskCache.set(diskKey, diskResult)
|
||||
if (diskResult) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
const treeKey = `${cwd}|${sha}|${filePath}`
|
||||
const cachedTree = cache.get(treeKey)
|
||||
if (cachedTree !== undefined) {
|
||||
return cachedTree
|
||||
}
|
||||
const treeResult = await isSymlinkInGitTree({cwd, sha, filePath})
|
||||
cache.set(treeKey, treeResult)
|
||||
return treeResult
|
||||
}
|
||||
|
||||
for (const changeType of Object.keys(changedFiles) as ChangeTypeEnum[]) {
|
||||
const files = changedFiles[changeType] || []
|
||||
for (const filePath of files) {
|
||||
const context = getSubmoduleContext(filePath)
|
||||
if (context.isSubmoduleRoot) {
|
||||
filtered[changeType].push(filePath)
|
||||
continue
|
||||
}
|
||||
|
||||
const isDeleted = changeType === ChangeTypeEnum.Deleted
|
||||
const sha = isDeleted ? context.previousSha : context.currentSha
|
||||
const isSymlink = await isSymlinkCached({
|
||||
cwd: context.cwd,
|
||||
filePath: context.relativePath,
|
||||
sha,
|
||||
preferDisk: !isDeleted
|
||||
})
|
||||
|
||||
if (!isSymlink) {
|
||||
filtered[changeType].push(filePath)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return filtered
|
||||
}
|
||||
|
||||
function* getFilePaths({
|
||||
inputs,
|
||||
filePaths,
|
||||
|
||||
@@ -84,6 +84,7 @@ export interface DiffResult {
|
||||
targetBranch: string
|
||||
diff: string
|
||||
initialCommit?: boolean
|
||||
sameSha?: boolean
|
||||
}
|
||||
|
||||
interface SHAForNonPullRequestEvent {
|
||||
@@ -198,6 +199,19 @@ export const getSHAForNonPullRequestEvent = async ({
|
||||
|
||||
if (inputs.baseSha && inputs.sha && currentBranch && targetBranch) {
|
||||
if (previousSha === currentSha) {
|
||||
if (inputs.skipSameSha) {
|
||||
core.info(
|
||||
`Skipping diff because previous sha ${previousSha} is equivalent to the current sha ${currentSha}.`
|
||||
)
|
||||
return {
|
||||
previousSha,
|
||||
currentSha,
|
||||
currentBranch,
|
||||
targetBranch,
|
||||
diff,
|
||||
sameSha: true
|
||||
}
|
||||
}
|
||||
core.error(
|
||||
`Similar commit hashes detected: previous sha: ${previousSha} is equivalent to the current sha: ${currentSha}.`
|
||||
)
|
||||
@@ -305,6 +319,19 @@ export const getSHAForNonPullRequestEvent = async ({
|
||||
core.debug(`Current branch: ${currentBranch}`)
|
||||
|
||||
if (!initialCommit && previousSha === currentSha) {
|
||||
if (inputs.skipSameSha) {
|
||||
core.info(
|
||||
`Skipping diff because previous sha ${previousSha} is equivalent to the current sha ${currentSha}.`
|
||||
)
|
||||
return {
|
||||
previousSha,
|
||||
currentSha,
|
||||
currentBranch,
|
||||
targetBranch,
|
||||
diff,
|
||||
sameSha: true
|
||||
}
|
||||
}
|
||||
core.error(
|
||||
`Similar commit hashes detected: previous sha: ${previousSha} is equivalent to the current sha: ${currentSha}.`
|
||||
)
|
||||
@@ -430,6 +457,19 @@ export const getSHAForPullRequestEvent = async ({
|
||||
|
||||
if (inputs.baseSha && inputs.sha && currentBranch && targetBranch) {
|
||||
if (previousSha === currentSha) {
|
||||
if (inputs.skipSameSha) {
|
||||
core.info(
|
||||
`Skipping diff because previous sha ${previousSha} is equivalent to the current sha ${currentSha}.`
|
||||
)
|
||||
return {
|
||||
previousSha,
|
||||
currentSha,
|
||||
currentBranch,
|
||||
targetBranch,
|
||||
diff,
|
||||
sameSha: true
|
||||
}
|
||||
}
|
||||
core.error(
|
||||
`Similar commit hashes detected: previous sha: ${previousSha} is equivalent to the current sha: ${currentSha}.`
|
||||
)
|
||||
@@ -608,6 +648,19 @@ export const getSHAForPullRequestEvent = async ({
|
||||
}
|
||||
|
||||
if (previousSha === currentSha) {
|
||||
if (inputs.skipSameSha) {
|
||||
core.info(
|
||||
`Skipping diff because previous sha ${previousSha} is equivalent to the current sha ${currentSha}.`
|
||||
)
|
||||
return {
|
||||
previousSha,
|
||||
currentSha,
|
||||
currentBranch,
|
||||
targetBranch,
|
||||
diff,
|
||||
sameSha: true
|
||||
}
|
||||
}
|
||||
core.error(
|
||||
`Similar commit hashes detected: previous sha: ${previousSha} is equivalent to the current sha: ${currentSha}.`
|
||||
)
|
||||
|
||||
@@ -22,6 +22,8 @@ export const DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS: Partial<Inputs> = {
|
||||
fetchAdditionalSubmoduleHistory: false,
|
||||
dirNamesDeletedFilesIncludeOnlyDeletedDirs: false,
|
||||
excludeSubmodules: false,
|
||||
excludeSymlinks: false,
|
||||
skipSameSha: false,
|
||||
fetchMissingHistoryMaxRetries: 20,
|
||||
usePosixPathSeparator: false,
|
||||
tagsPattern: '*',
|
||||
|
||||
@@ -55,6 +55,8 @@ export type Inputs = {
|
||||
negationPatternsFirst: boolean
|
||||
useRestApi: boolean
|
||||
excludeSubmodules: boolean
|
||||
excludeSymlinks: boolean
|
||||
skipSameSha: boolean
|
||||
fetchMissingHistoryMaxRetries?: number
|
||||
usePosixPathSeparator: boolean
|
||||
tagsPattern: string
|
||||
@@ -249,6 +251,14 @@ export const getInputs = (): Inputs => {
|
||||
required: false
|
||||
})
|
||||
|
||||
const excludeSymlinks = core.getBooleanInput('exclude_symlinks', {
|
||||
required: false
|
||||
})
|
||||
|
||||
const skipSameSha = core.getBooleanInput('skip_same_sha', {
|
||||
required: false
|
||||
})
|
||||
|
||||
const fetchMissingHistoryMaxRetries = core.getInput(
|
||||
'fetch_missing_history_max_retries',
|
||||
{required: false}
|
||||
@@ -310,6 +320,8 @@ export const getInputs = (): Inputs => {
|
||||
fetchAdditionalSubmoduleHistory,
|
||||
dirNamesDeletedFilesIncludeOnlyDeletedDirs,
|
||||
excludeSubmodules,
|
||||
excludeSymlinks,
|
||||
skipSameSha,
|
||||
usePosixPathSeparator,
|
||||
tagsPattern,
|
||||
tagsIgnorePattern,
|
||||
|
||||
66
src/main.ts
66
src/main.ts
@@ -5,8 +5,10 @@ import {
|
||||
processChangedFiles,
|
||||
ChangeTypeEnum,
|
||||
getAllDiffFiles,
|
||||
filterSymlinksFromChangedFiles,
|
||||
getChangedFilesFromGithubAPI,
|
||||
getRenamedFiles
|
||||
getRenamedFiles,
|
||||
ChangedFiles
|
||||
} from './changedFiles'
|
||||
import {
|
||||
DiffResult,
|
||||
@@ -127,11 +129,57 @@ const getChangedFilesFromLocalGitHistory = async ({
|
||||
return
|
||||
}
|
||||
|
||||
if (diffResult.sameSha) {
|
||||
core.info('Base and head SHAs are identical; no changed files to report.')
|
||||
const emptyChangedFiles: ChangedFiles = {
|
||||
[ChangeTypeEnum.Added]: [],
|
||||
[ChangeTypeEnum.Copied]: [],
|
||||
[ChangeTypeEnum.Deleted]: [],
|
||||
[ChangeTypeEnum.Modified]: [],
|
||||
[ChangeTypeEnum.Renamed]: [],
|
||||
[ChangeTypeEnum.TypeChanged]: [],
|
||||
[ChangeTypeEnum.Unmerged]: [],
|
||||
[ChangeTypeEnum.Unknown]: []
|
||||
}
|
||||
await processChangedFiles({
|
||||
filePatterns,
|
||||
allDiffFiles: emptyChangedFiles,
|
||||
inputs,
|
||||
yamlFilePatterns,
|
||||
workingDirectory
|
||||
})
|
||||
|
||||
if (inputs.includeAllOldNewRenamedFiles) {
|
||||
await setOutput({
|
||||
key: 'all_old_new_renamed_files',
|
||||
value: inputs.json ? [] : '',
|
||||
writeOutputFiles: inputs.writeOutputFiles,
|
||||
outputDir: inputs.outputDir,
|
||||
json: inputs.json,
|
||||
safeOutput: inputs.safeOutput
|
||||
})
|
||||
await setOutput({
|
||||
key: 'all_old_new_renamed_files_count',
|
||||
value: '0',
|
||||
writeOutputFiles: inputs.writeOutputFiles,
|
||||
outputDir: inputs.outputDir,
|
||||
json: inputs.json
|
||||
})
|
||||
}
|
||||
core.info('All Done!')
|
||||
core.endGroup()
|
||||
return
|
||||
}
|
||||
|
||||
core.info(
|
||||
`Retrieving changes between ${diffResult.previousSha} (${diffResult.targetBranch}) → ${diffResult.currentSha} (${diffResult.currentBranch})`
|
||||
)
|
||||
|
||||
const allDiffFiles = await getAllDiffFiles({
|
||||
const submoduleShas: Record<
|
||||
string,
|
||||
{previousSha?: string; currentSha?: string}
|
||||
> = {}
|
||||
let allDiffFiles = await getAllDiffFiles({
|
||||
workingDirectory,
|
||||
diffSubmodule,
|
||||
diffResult,
|
||||
@@ -139,8 +187,20 @@ const getChangedFilesFromLocalGitHistory = async ({
|
||||
outputRenamedFilesAsDeletedAndAdded,
|
||||
fetchAdditionalSubmoduleHistory: inputs.fetchAdditionalSubmoduleHistory,
|
||||
failOnInitialDiffError: inputs.failOnInitialDiffError,
|
||||
failOnSubmoduleDiffError: inputs.failOnSubmoduleDiffError
|
||||
failOnSubmoduleDiffError: inputs.failOnSubmoduleDiffError,
|
||||
submoduleShas
|
||||
})
|
||||
|
||||
if (inputs.excludeSymlinks) {
|
||||
core.info('Excluding symlinks from the diff')
|
||||
allDiffFiles = await filterSymlinksFromChangedFiles({
|
||||
changedFiles: allDiffFiles,
|
||||
workingDirectory,
|
||||
diffResult,
|
||||
submodulePaths,
|
||||
submoduleShas
|
||||
})
|
||||
}
|
||||
core.debug(`All diff files: ${JSON.stringify(allDiffFiles)}`)
|
||||
core.info('All Done!')
|
||||
core.endGroup()
|
||||
|
||||
110
src/utils.ts
110
src/utils.ts
@@ -152,6 +152,69 @@ export const exists = async (filePath: string): Promise<boolean> => {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a file is a symlink on disk
|
||||
* @param cwd - working directory
|
||||
* @param filePath - path to check
|
||||
* @returns file is a symlink
|
||||
*/
|
||||
export const isSymlinkOnDisk = async ({
|
||||
cwd,
|
||||
filePath
|
||||
}: {
|
||||
cwd: string
|
||||
filePath: string
|
||||
}): Promise<boolean> => {
|
||||
try {
|
||||
const stat = await fs.lstat(path.join(cwd, filePath))
|
||||
return stat.isSymbolicLink()
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a file is a symlink in a git tree
|
||||
* @param cwd - working directory
|
||||
* @param sha - commit sha
|
||||
* @param filePath - path to check
|
||||
* @returns file is a symlink
|
||||
*/
|
||||
export const isSymlinkInGitTree = async ({
|
||||
cwd,
|
||||
sha,
|
||||
filePath
|
||||
}: {
|
||||
cwd: string
|
||||
sha: string
|
||||
filePath: string
|
||||
}): Promise<boolean> => {
|
||||
if (!sha) {
|
||||
return false
|
||||
}
|
||||
const {stdout, exitCode} = await exec.getExecOutput(
|
||||
'git',
|
||||
['ls-tree', '-r', sha, '--', filePath],
|
||||
{
|
||||
cwd,
|
||||
ignoreReturnCode: true,
|
||||
silent: !core.isDebug()
|
||||
}
|
||||
)
|
||||
|
||||
if (exitCode !== 0) {
|
||||
return false
|
||||
}
|
||||
|
||||
const line = stdout.split('\n').find(Boolean)
|
||||
if (!line) {
|
||||
return false
|
||||
}
|
||||
|
||||
const [mode] = line.split(/\s+/)
|
||||
return mode === '120000'
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates lines of a file as an async iterable iterator
|
||||
* @param filePath - path of file to read
|
||||
@@ -819,14 +882,49 @@ export const cleanShaInput = async ({
|
||||
|
||||
if (exitCode !== 0) {
|
||||
const octokit = github.getOctokit(token)
|
||||
// If it's not a valid commit sha, assume it's a branch name and get the HEAD sha
|
||||
const {data: refData} = await octokit.rest.git.getRef({
|
||||
owner: github.context.repo.owner,
|
||||
repo: github.context.repo.repo,
|
||||
ref: `heads/${sha}`
|
||||
const owner = github.context.repo.owner
|
||||
const repo = github.context.repo.repo
|
||||
const isNotFoundError = (error: unknown): boolean =>
|
||||
typeof error === 'object' &&
|
||||
error !== null &&
|
||||
'status' in error &&
|
||||
(error as {status?: number}).status === 404
|
||||
// If it's not a valid commit sha, assume it's a ref name first.
|
||||
try {
|
||||
const {data: refData} = await octokit.rest.git.getRef({
|
||||
owner,
|
||||
repo,
|
||||
ref: `heads/${sha}`
|
||||
})
|
||||
|
||||
return refData.object.sha
|
||||
} catch (error) {
|
||||
if (!isNotFoundError(error)) {
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
const {data: refData} = await octokit.rest.git.getRef({
|
||||
owner,
|
||||
repo,
|
||||
ref: `tags/${sha}`
|
||||
})
|
||||
|
||||
return refData.object.sha
|
||||
} catch (error) {
|
||||
if (!isNotFoundError(error)) {
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
const {data: commitData} = await octokit.rest.git.getCommit({
|
||||
owner,
|
||||
repo,
|
||||
commit_sha: sha
|
||||
})
|
||||
|
||||
return refData.object.sha
|
||||
return commitData.sha
|
||||
}
|
||||
|
||||
return stdout.trim()
|
||||
|
||||
1
test/symlink-target.txt
Normal file
1
test/symlink-target.txt
Normal file
@@ -0,0 +1 @@
|
||||
Symlink target fixture.
|
||||
1
test/symlink-to-target
Symbolic link
1
test/symlink-to-target
Symbolic link
@@ -0,0 +1 @@
|
||||
symlink-target.txt
|
||||
Reference in New Issue
Block a user