Compare commits

...

93 Commits
v42 ... v42.0.6

Author SHA1 Message Date
GitHub Action
d516645658 Added missing changes and modified dist assets. 2024-03-06 12:50:33 +00:00
renovate[bot]
2c97e7ea24 fix(deps): update dependency yaml to v2.4.1 2024-03-06 12:50:33 +00:00
renovate[bot]
1c8e606958 chore(deps): update typescript-eslint monorepo to v7.1.1 2024-03-04 18:15:53 +00:00
GitHub Action
74605cb326 Added missing changes and modified dist assets. 2024-03-04 00:18:25 +00:00
renovate[bot]
aa15b58e8a chore(deps): lock file maintenance 2024-03-04 00:18:25 +00:00
renovate[bot]
0a392e7438 chore(deps): update dependency eslint-plugin-github to v4.10.2 2024-02-29 23:36:05 +00:00
renovate[bot]
85efc7df8e chore(deps): update dependency @types/node to v20.11.24 2024-02-29 18:22:25 +00:00
renovate[bot]
2a095d24c2 chore(deps): update dependency @types/node to v20.11.23 2024-02-29 12:45:48 +00:00
renovate[bot]
ac3dc5e392 chore(deps): update tj-actions/verify-changed-files action to v19 (#1960)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-29 01:16:44 +00:00
renovate[bot]
dd7e9d3b17 chore(deps): update dependency @types/node to v20.11.22 2024-02-28 20:16:24 +00:00
renovate[bot]
0647a31f54 chore(deps): update peter-evans/create-pull-request action to v6.0.1 2024-02-28 04:49:44 +00:00
renovate[bot]
9d67dd3dbe chore(deps): update dependency @types/node to v20.11.21 2024-02-28 00:41:14 +00:00
renovate[bot]
5acd7e3646 chore(deps): update typescript-eslint monorepo to v7.1.0 2024-02-26 20:18:46 +00:00
tj-actions[bot]
9f4af73d05 Upgraded to v42.0.5 (#1955)
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com>
2024-02-26 07:25:53 +00:00
renovate[bot]
800a282599 chore(deps): lock file maintenance 2024-02-26 02:02:02 +00:00
GitHub Action
31c4d150e6 Added missing changes and modified dist assets. 2024-02-25 16:58:14 +00:00
renovate[bot]
2a2a5b6b9c fix(deps): update dependency yaml to v2.4.0 2024-02-25 16:58:14 +00:00
Tonye Jack
d8dcc13244 chore: Update README.md (#1952) 2024-02-25 16:48:32 +00:00
renovate[bot]
639ce0e105 chore(deps): update dependency eslint to v8.57.0 2024-02-23 22:38:47 +00:00
GitHub Action
9d447b9959 Added missing changes and modified dist assets. 2024-02-23 04:24:39 +00:00
renovate[bot]
83bfc72efa chore(deps): lock file maintenance 2024-02-23 04:24:39 +00:00
renovate[bot]
879c8388c8 chore(deps): update dependency @types/node to v20.11.20 2024-02-22 19:58:37 +00:00
Tonye Jack
bb7502bd15 Update README.md 2024-02-21 07:20:22 -07:00
renovate[bot]
5c5539ced9 chore(deps): update typescript-eslint monorepo to v7.0.2 2024-02-19 19:54:17 +00:00
GitHub Action
c2039de114 Added missing changes and modified dist assets. 2024-02-19 00:16:07 +00:00
renovate[bot]
0cbc9bc448 chore(deps): lock file maintenance 2024-02-19 00:16:07 +00:00
tj-actions[bot]
9ef20a69dd Updated README.md (#1943)
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com>
2024-02-18 05:12:36 +00:00
Tonye Jack
a617853c0f chore: update action.yml (#1942) 2024-02-17 21:58:39 -07:00
tj-actions[bot]
5c1bceb76c Upgraded to v42.0.4 (#1941)
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com>
2024-02-18 03:31:45 +00:00
Tonye Jack
3f54ebb830 chore: update formatting and add missing dist changes (#1940) 2024-02-17 20:20:58 -07:00
tj-actions[bot]
6f070cff38 Upgraded to v42.0.3 (#1939)
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
2024-02-17 22:43:08 +00:00
tj-actions[bot]
ec75ae5ab7 Updated README.md (#1938)
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com>
2024-02-17 15:32:19 -07:00
allcontributors[bot]
4333ab5b20 docs: add codesculpture as a contributor for code, and bug (#1937)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-02-17 15:31:24 -07:00
Aravind
e3cac49049 fix(payload_api, git_diff): Accessing correct property in payload and Replacing --quiet with --no-patch in git diff (#1934) 2024-02-17 15:31:02 -07:00
renovate[bot]
68bd4537bd chore(deps): update github artifact actions to v4 (major) (#1936)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-17 13:36:07 +00:00
renovate[bot]
f0ce41b71c chore(deps): update dependency eslint-plugin-jest to v27.9.0 2024-02-16 19:21:56 +00:00
renovate[bot]
ce451bf430 chore(deps): update dependency @types/node to v20.11.19 2024-02-15 19:08:56 +00:00
renovate[bot]
7592e9e855 chore(deps): update dependency @types/node to v20.11.18 2024-02-15 14:12:15 +00:00
renovate[bot]
999653c672 chore(deps): lock file maintenance 2024-02-13 21:04:48 +00:00
renovate[bot]
6cf4c21fdf chore(deps): update dependency eslint-plugin-jest to v27.8.0 2024-02-13 18:16:15 +00:00
Tonye Jack
09ee51bee3 chore: update codacy-analysis.yml (#1929) 2024-02-13 16:34:23 +00:00
Tonye Jack
8eced8a5df Update README.md 2024-02-13 09:20:59 -07:00
renovate[bot]
13fa1402a7 chore(deps): update typescript-eslint monorepo to v7 (major) (#1927)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-12 22:21:01 +00:00
GitHub Action
07ac0ac168 Added missing changes and modified dist assets. 2024-02-12 01:14:37 +00:00
renovate[bot]
049d7fd639 chore(deps): lock file maintenance 2024-02-12 01:14:37 +00:00
renovate[bot]
2e90fbb74b chore(deps): update dependency @types/node to v20.11.17 2024-02-08 21:32:12 +00:00
renovate[bot]
2a9db54a6d chore(deps): update codacy/codacy-analysis-cli-action action to v4.4.0 2024-02-08 16:41:50 +00:00
renovate[bot]
d0d5671ef7 chore(deps): update actions/setup-node action to v4.0.2 2024-02-07 05:44:30 +00:00
Tonye Jack
97120ff1f5 chore: update README.md (#1922) 2024-02-06 22:33:30 -07:00
Tonye Jack
b2d4e1b488 Update README.md 2024-02-06 20:33:25 -07:00
Tonye Jack
9299962a59 chore: update workflow-run-example.yml (#1921) 2024-02-06 20:29:12 -07:00
KeisukeYamashita
ea35f7ea00 fix: broken link to matrix example workflow (#1918)
Co-authored-by: Tonye Jack <jtonye@ymail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2024-02-06 20:18:39 -07:00
tj-actions[bot]
3399f8837f Updated README.md (#1920)
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com>
2024-02-06 16:50:49 -07:00
allcontributors[bot]
ac897da4f1 docs: add KeisukeYamashita as a contributor for doc (#1919)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-02-06 16:48:51 -07:00
tj-actions[bot]
8e56bc097a Updated README.md (#1917)
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com>
2024-02-05 19:51:58 +00:00
Tonye Jack
f6d3fe5179 Update action.yml 2024-02-05 12:42:54 -07:00
Tonye Jack
efa99ea361 Update README.md 2024-02-05 12:38:05 -07:00
Tonye Jack
6d8f9bd379 Update README.md 2024-02-05 12:34:02 -07:00
renovate[bot]
589fb70c81 chore(deps): update typescript-eslint monorepo to v6.21.0 2024-02-05 19:18:51 +00:00
tj-actions[bot]
7daee9e7cf Updated README.md (#1915)
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com>
2024-02-05 05:03:52 +00:00
Tonye Jack
99c80bdd47 Update README.md 2024-02-04 21:55:53 -07:00
renovate[bot]
5e7cbf5fdb chore(deps): update dependency prettier to v3.2.5 2024-02-04 06:22:00 +00:00
renovate[bot]
b4d6d28988 chore(deps): lock file maintenance 2024-02-04 04:15:55 +00:00
renovate[bot]
8370e6e6ef chore(deps): update tj-actions/verify-changed-files action to v18 (#1912)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-03 23:01:22 +00:00
tj-actions[bot]
aa31060851 Updated README.md (#1911)
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com>
2024-02-02 06:23:08 -07:00
Daniel Hill
54c56103aa correct bash loop in examples (#1908)
Co-authored-by: Tonye Jack <jtonye@ymail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2024-02-02 06:21:28 -07:00
allcontributors[bot]
e57fb1b8eb docs: add dan-hill2802 as a contributor for doc (#1910)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-02-02 06:20:26 -07:00
Tonye Jack
926735a61e chore: create greetings workflow (#1909) 2024-02-02 13:15:54 +00:00
Tonye Jack
d3ac2a064b Update README.md 2024-02-02 05:26:23 -07:00
renovate[bot]
91df40b882 chore(deps): update dependency @types/node to v20.11.16 2024-02-02 00:55:22 +00:00
renovate[bot]
28396e9658 chore(deps): update dependency @types/jest to v29.5.12 2024-02-01 21:32:44 +00:00
renovate[bot]
3a66e2a7e4 chore(deps): update dependency @types/node to v20.11.15 2024-02-01 14:05:35 +00:00
renovate[bot]
35f3202fd5 chore(deps): update dependency @types/node to v20.11.14 2024-01-31 23:17:50 +00:00
renovate[bot]
2b30af482a chore(deps): update peter-evans/create-pull-request action to v6 (#1903)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-31 13:06:56 +00:00
renovate[bot]
a93bcf46e0 chore(deps): update dependency @types/node to v20.11.13 2024-01-31 00:55:34 +00:00
renovate[bot]
6d4c555c7d chore(deps): update dependency @types/node to v20.11.12 2024-01-30 22:58:15 +00:00
renovate[bot]
507a8c703d chore(deps): update dependency @types/node to v20.11.11 2024-01-30 20:28:06 +00:00
Tonye Jack
3a7052c24a chore: update test (#1899) 2024-01-30 15:58:53 +00:00
renovate[bot]
782eb123a9 chore(deps): update typescript-eslint monorepo to v6.20.0 2024-01-29 17:33:03 +00:00
renovate[bot]
9134dac8f6 chore(deps): lock file maintenance 2024-01-29 02:23:13 +00:00
tj-actions[bot]
df12603b45 Updated README.md (#1896)
Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
2024-01-28 23:00:58 +00:00
allcontributors[bot]
bb9b5e8363 docs: add levenleven as a contributor for doc (#1893)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-01-28 15:53:00 -07:00
tj-actions[bot]
31b9c0a541 Updated README.md (#1894)
Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com>
2024-01-28 20:24:30 +00:00
renovate[bot]
ba0a561b13 chore(deps): update dependency @types/node to v20.11.10 2024-01-28 20:15:14 +00:00
Aleksey Levenstein
8d35cbb00f chore: fix broken matrix example links (#1891)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2024-01-28 20:02:05 +00:00
renovate[bot]
82dd6547dc chore(deps): update dependency @types/node to v20.11.9 2024-01-28 11:16:18 +00:00
renovate[bot]
6d42539842 chore(deps): lock file maintenance 2024-01-28 02:15:30 +00:00
renovate[bot]
08dedfb681 chore(deps): update dependency @types/node to v20.11.8 2024-01-27 16:43:26 +00:00
renovate[bot]
f6d9fa10e0 chore(deps): update dependency @types/node to v20.11.7 2024-01-26 07:40:09 +00:00
renovate[bot]
9eb0d763ae chore(deps): update dependency @types/uuid to v9.0.8 2024-01-26 01:13:50 +00:00
tj-actions[bot]
51d2f88f07 Upgraded to v42.0.2 (#1886)
Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
2024-01-25 19:37:33 +00:00
Tonye Jack
90a06d6ba9 feat: enhance error handling for non-git directories (#1885)
Co-authored-by: GitHub Action <action@github.com>
2024-01-25 18:46:48 +00:00
tj-actions[bot]
2cb2c9234e Upgraded to v42.0.1 (#1884)
Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
2024-01-24 22:06:48 -07:00
18 changed files with 1077 additions and 583 deletions

View File

@@ -208,6 +208,43 @@
"test", "test",
"bug" "bug"
] ]
},
{
"login": "levenleven",
"name": "Aleksey Levenstein",
"avatar_url": "https://avatars.githubusercontent.com/u/6463364?v=4",
"profile": "https://github.com/levenleven",
"contributions": [
"doc"
]
},
{
"login": "dan-hill2802",
"name": "Daniel Hill",
"avatar_url": "https://avatars.githubusercontent.com/u/5046322?v=4",
"profile": "https://github.com/dan-hill2802",
"contributions": [
"doc"
]
},
{
"login": "KeisukeYamashita",
"name": "KeisukeYamashita",
"avatar_url": "https://avatars.githubusercontent.com/u/23056537?v=4",
"profile": "https://keisukeyamashita.com",
"contributions": [
"doc"
]
},
{
"login": "codesculpture",
"name": "Aravind",
"avatar_url": "https://avatars.githubusercontent.com/u/63452117?v=4",
"profile": "https://github.com/codesculpture",
"contributions": [
"code",
"bug"
]
} }
], ],
"contributorsPerLine": 7, "contributorsPerLine": 7,

View File

@@ -24,11 +24,6 @@ permissions:
jobs: jobs:
codacy-security-scan: codacy-security-scan:
# Cancel other workflows that are running for the same branch
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
name: Codacy Security Scan name: Codacy Security Scan
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -39,7 +34,7 @@ jobs:
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis # Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
- name: Run Codacy Analysis CLI - name: Run Codacy Analysis CLI
continue-on-error: true continue-on-error: true
uses: codacy/codacy-analysis-cli-action@v4.3.0 uses: codacy/codacy-analysis-cli-action@v4.4.0
with: with:
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository # Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
# You can also omit the token and run the tools that support default configurations # You can also omit the token and run the tools that support default configurations

18
.github/workflows/greetings.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Greetings
on: [pull_request_target, issues]
permissions:
pull-requests: write
issues: write
jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
continue-on-error: true
with:
repo-token: ${{ secrets.PAT_TOKEN }}
issue-message: "Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience."
pr-message: "Thanks for implementing a fix, could you ensure that the test covers your changes if applicable."

View File

@@ -37,7 +37,7 @@ jobs:
- name: Run git-cliff - name: Run git-cliff
uses: tj-actions/git-cliff@v1 uses: tj-actions/git-cliff@v1
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v5.0.2 uses: peter-evans/create-pull-request@v6.0.1
with: with:
base: "main" base: "main"
labels: "merge when passing" labels: "merge when passing"

View File

@@ -2,7 +2,6 @@ name: CI
permissions: permissions:
contents: read contents: read
pull-requests: write
on: on:
push: push:
@@ -35,6 +34,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
files_changed: ${{ steps.changed_files.outputs.files_changed }} files_changed: ${{ steps.changed_files.outputs.files_changed }}
permissions:
contents: read
pull-requests: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -43,7 +45,7 @@ jobs:
repository: ${{ github.event.pull_request.head.repo.full_name }} repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Use Node.js 20.x - name: Use Node.js 20.x
uses: actions/setup-node@v4.0.1 uses: actions/setup-node@v4.0.2
with: with:
cache: 'yarn' cache: 'yarn'
node-version: '20.x' node-version: '20.x'
@@ -70,7 +72,7 @@ jobs:
yarn all yarn all
- name: Verify Changed files - name: Verify Changed files
uses: tj-actions/verify-changed-files@v17 uses: tj-actions/verify-changed-files@v19
id: changed_files id: changed_files
with: with:
files: | files: |
@@ -94,7 +96,7 @@ jobs:
branch: ${{ github.head_ref }} branch: ${{ github.head_ref }}
- name: Upload build assets - name: Upload build assets
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: build-assets name: build-assets
path: dist path: dist
@@ -111,6 +113,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
steps: steps:
- name: Checkout into dir1 - name: Checkout into dir1
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -121,7 +125,7 @@ jobs:
path: dir1 path: dir1
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
path: dir1/dist path: dir1/dist
@@ -147,7 +151,7 @@ jobs:
bash bash
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
path: dir2/dist path: dir2/dist
@@ -185,7 +189,8 @@ jobs:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'push' && needs.build.outputs.files_changed != 'true' if: github.event_name == 'push' && needs.build.outputs.files_changed != 'true'
permissions:
contents: read
steps: steps:
- name: Checkout branch - name: Checkout branch
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -194,7 +199,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -243,6 +248,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
steps: steps:
- name: Checkout branch - name: Checkout branch
@@ -252,7 +259,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -285,6 +292,8 @@ jobs:
github.event_name == 'push' || github.event_name == 'push' ||
github.event_name == 'pull_request' github.event_name == 'pull_request'
) && needs.build.outputs.files_changed != 'true' ) && needs.build.outputs.files_changed != 'true'
permissions:
contents: read
steps: steps:
- name: Checkout branch - name: Checkout branch
@@ -294,7 +303,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -315,6 +324,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
strategy: strategy:
fail-fast: false fail-fast: false
@@ -331,7 +342,7 @@ jobs:
fetch-depth: ${{ matrix.fetch-depth }} fetch-depth: ${{ matrix.fetch-depth }}
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -354,6 +365,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: github.event_name != 'push' && needs.build.outputs.files_changed != 'true' if: github.event_name != 'push' && needs.build.outputs.files_changed != 'true'
permissions:
contents: read
steps: steps:
- name: Checkout branch - name: Checkout branch
@@ -362,7 +375,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -381,6 +394,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: github.event_name != 'push' && needs.build.outputs.files_changed != 'true' if: github.event_name != 'push' && needs.build.outputs.files_changed != 'true'
permissions:
contents: read
strategy: strategy:
fail-fast: false fail-fast: false
max-parallel: 4 max-parallel: 4
@@ -396,7 +411,7 @@ jobs:
repository: ${{ github.event.pull_request.head.repo.full_name }} repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -415,13 +430,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
steps: steps:
- name: Checkout branch - name: Checkout branch
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -469,13 +485,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
steps: steps:
- name: Checkout branch - name: Checkout branch
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -535,7 +552,7 @@ jobs:
path: dir1 path: dir1
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
path: dir1/dist path: dir1/dist
@@ -550,11 +567,46 @@ jobs:
shell: shell:
bash bash
test-non-existing-repository:
name: Test changed-files with non existing repository
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && needs.build.outputs.files_changed != 'true'
permissions:
contents: read
steps:
- name: Checkout into dir1
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
submodules: true
fetch-depth: 0
path: dir1
- name: Download build assets
uses: actions/download-artifact@v4
with:
name: build-assets
path: dir1/dist
- name: Run changed-files with non existing repository
id: changed-files
continue-on-error: true
uses: ./dir1
- name: Verify failed
if: steps.changed-files.outcome != 'failure'
run: |
echo "Expected: (failure) got ${{ steps.changed-files.outcome }}"
exit 1
test-submodules: test-submodules:
name: Test changed-files with submodule name: Test changed-files with submodule
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
strategy: strategy:
fail-fast: false fail-fast: false
max-parallel: 4 max-parallel: 4
@@ -570,7 +622,7 @@ jobs:
fetch-depth: ${{ matrix.fetch-depth }} fetch-depth: ${{ matrix.fetch-depth }}
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -598,6 +650,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
strategy: strategy:
fail-fast: false fail-fast: false
max-parallel: 4 max-parallel: 4
@@ -613,7 +667,7 @@ jobs:
fetch-depth: ${{ matrix.fetch-depth }} fetch-depth: ${{ matrix.fetch-depth }}
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -673,6 +727,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
strategy: strategy:
fail-fast: false fail-fast: false
max-parallel: 4 max-parallel: 4
@@ -688,7 +744,7 @@ jobs:
fetch-depth: ${{ matrix.fetch-depth }} fetch-depth: ${{ matrix.fetch-depth }}
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -863,6 +919,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
steps: steps:
- name: Checkout branch - name: Checkout branch
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -896,6 +954,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
steps: steps:
- name: Checkout branch - name: Checkout branch
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -937,6 +997,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
strategy: strategy:
fail-fast: false fail-fast: false
max-parallel: 4 max-parallel: 4
@@ -953,7 +1015,7 @@ jobs:
fetch-depth: ${{ matrix.fetch-depth }} fetch-depth: ${{ matrix.fetch-depth }}
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
@@ -987,6 +1049,8 @@ jobs:
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
needs: build needs: build
if: needs.build.outputs.files_changed != 'true' if: needs.build.outputs.files_changed != 'true'
permissions:
contents: read
strategy: strategy:
fail-fast: false fail-fast: false
max-parallel: 4 max-parallel: 4
@@ -1002,7 +1066,7 @@ jobs:
repository: ${{ github.event.pull_request.head.repo.full_name }} repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: ${{ matrix.fetch-depth }} fetch-depth: ${{ matrix.fetch-depth }}
- name: Download build assets - name: Download build assets
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: build-assets name: build-assets
- name: Dump GitHub context - name: Dump GitHub context
@@ -1017,7 +1081,7 @@ jobs:
echo '${{ toJSON(steps.changed-files.outputs) }}' echo '${{ toJSON(steps.changed-files.outputs) }}'
shell: shell:
bash bash
- name: Run changed-files with dir name - name: Run changed-files with dir name pattern
id: changed-files-dir-name id: changed-files-dir-name
uses: ./ uses: ./
with: with:

View File

@@ -27,7 +27,7 @@ jobs:
uses: tj-actions/remark@v3 uses: tj-actions/remark@v3
- name: Verify Changed files - name: Verify Changed files
uses: tj-actions/verify-changed-files@v17 uses: tj-actions/verify-changed-files@v19
id: verify_changed_files id: verify_changed_files
with: with:
files: | files: |
@@ -41,7 +41,7 @@ jobs:
- name: Create Pull Request - name: Create Pull Request
if: failure() if: failure()
uses: peter-evans/create-pull-request@v5 uses: peter-evans/create-pull-request@v6
with: with:
base: "main" base: "main"
labels: "merge when passing" labels: "merge when passing"

View File

@@ -1,7 +1,7 @@
name: Workflow Run Example name: Workflow Run Example
on: on:
workflow_run: workflow_run:
workflows: [Matrix Test] workflows: [Matrix Example]
types: [completed] types: [completed]
permissions: permissions:
@@ -12,9 +12,30 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }} if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps: steps:
- run: echo 'The triggering workflow passed' - name: Checkout code
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: ./
- name: Echo list of changed files on success
run: |
echo "Changed files on success:"
echo "${{ steps.changed-files.outputs.all_changed_files }}"
on-failure: on-failure:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }} if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps: steps:
- run: echo 'The triggering workflow failed' - name: Checkout code
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: ./
- name: Echo list of changed files on failure
run: |
echo "Changed files on failure:"
echo "${{ steps.changed-files.outputs.all_changed_files }}"

View File

@@ -1,5 +1,202 @@
# Changelog # Changelog
# [42.0.5](https://github.com/tj-actions/changed-files/compare/v42.0.4...v42.0.5) - (2024-02-26)
## <!-- 1 -->🐛 Bug Fixes
- **deps:** Update dependency yaml to v2.4.0 ([2a2a5b6](https://github.com/tj-actions/changed-files/commit/2a2a5b6b9c6db0cfcd525935dad0f332588dbcdf)) - (renovate[bot])
## <!-- 16 --> Add
- Added missing changes and modified dist assets.
([31c4d15](https://github.com/tj-actions/changed-files/commit/31c4d150e63ef47fc38cf81c39ceb5229d86e767)) - (GitHub Action)
- Added missing changes and modified dist assets.
([9d447b9](https://github.com/tj-actions/changed-files/commit/9d447b99599b62c3df2a8a45af769db7f81fd34f)) - (GitHub Action)
- Added missing changes and modified dist assets.
([c2039de](https://github.com/tj-actions/changed-files/commit/c2039de114db9c5a087669f8e5a08ccebf8ba7e5)) - (GitHub Action)
## <!-- 26 -->🔄 Update
- Update README.md ([bb7502b](https://github.com/tj-actions/changed-files/commit/bb7502bd153c279403ec0adfe53e7d29572b8e6d)) - (Tonye Jack)
- Updated README.md ([#1943](https://github.com/tj-actions/changed-files/issues/1943))
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([9ef20a6](https://github.com/tj-actions/changed-files/commit/9ef20a69dd248e1c8052154fbc71e92eb22534f7)) - (tj-actions[bot])
## <!-- 7 -->⚙️ Miscellaneous Tasks
- **deps:** Lock file maintenance ([800a282](https://github.com/tj-actions/changed-files/commit/800a2825992141ddde1a8bca8ad394cec34d3188)) - (renovate[bot])
- Update README.md ([#1952](https://github.com/tj-actions/changed-files/issues/1952)) ([d8dcc13](https://github.com/tj-actions/changed-files/commit/d8dcc13244f746e6e87d0c8e1d9e1fece4d92b1b)) - (Tonye Jack)
- **deps:** Update dependency eslint to v8.57.0 ([639ce0e](https://github.com/tj-actions/changed-files/commit/639ce0e105d24840145eb1f8376b3e76c9a3a8cb)) - (renovate[bot])
- **deps:** Lock file maintenance ([83bfc72](https://github.com/tj-actions/changed-files/commit/83bfc72efa888541b87858084210b0da1a075ab0)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.20 ([879c838](https://github.com/tj-actions/changed-files/commit/879c8388c87e3dd4b82550f3ac3feb339b5be371)) - (renovate[bot])
- **deps:** Update typescript-eslint monorepo to v7.0.2 ([5c5539c](https://github.com/tj-actions/changed-files/commit/5c5539ced911e7611502cefecf9a4738733a6bfe)) - (renovate[bot])
- **deps:** Lock file maintenance ([0cbc9bc](https://github.com/tj-actions/changed-files/commit/0cbc9bc448d680c63e6fa4a96b40194d963e4257)) - (renovate[bot])
- Update action.yml ([#1942](https://github.com/tj-actions/changed-files/issues/1942)) ([a617853](https://github.com/tj-actions/changed-files/commit/a617853c0f8e2e999a506ad8f26424a2aac2175e)) - (Tonye Jack)
## <!-- 9 -->⬆️ Upgrades
- Upgraded to v42.0.4 ([#1941](https://github.com/tj-actions/changed-files/issues/1941))
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([5c1bceb](https://github.com/tj-actions/changed-files/commit/5c1bceb76c87f3f3f9c362eb74228d3d9512ff5c)) - (tj-actions[bot])
# [42.0.4](https://github.com/tj-actions/changed-files/compare/v42.0.3...v42.0.4) - (2024-02-18)
## <!-- 7 -->⚙️ Miscellaneous Tasks
- Update formatting and add missing dist changes ([#1940](https://github.com/tj-actions/changed-files/issues/1940)) ([3f54ebb](https://github.com/tj-actions/changed-files/commit/3f54ebb830831fc121d3263c1857cfbdc310cdb9)) - (Tonye Jack)
## <!-- 9 -->⬆️ Upgrades
- Upgraded to v42.0.3 ([#1939](https://github.com/tj-actions/changed-files/issues/1939))
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com> ([6f070cf](https://github.com/tj-actions/changed-files/commit/6f070cff38ff6dd3af1da87b6c8cdbcb8045e544)) - (tj-actions[bot])
# [42.0.3](https://github.com/tj-actions/changed-files/compare/v42.0.2...v42.0.3) - (2024-02-17)
## <!-- 1 -->🐛 Bug Fixes
- **payload_api, git_diff:** Accessing correct property in payload and Replacing --quiet with --no-patch in git diff ([#1934](https://github.com/tj-actions/changed-files/issues/1934)) ([e3cac49](https://github.com/tj-actions/changed-files/commit/e3cac49049b6b59f85d64402e7477f0a211ceba0)) - (Aravind)
- Broken link to matrix example workflow ([#1918](https://github.com/tj-actions/changed-files/issues/1918)) ([ea35f7e](https://github.com/tj-actions/changed-files/commit/ea35f7ea0028180dacddb2da5124befbdcd5287c)) - (KeisukeYamashita)
## <!-- 16 --> Add
- Added missing changes and modified dist assets.
([07ac0ac](https://github.com/tj-actions/changed-files/commit/07ac0ac1689ff4da699108e90989bed8946c655a)) - (GitHub Action)
## <!-- 26 -->🔄 Update
- Updated README.md ([#1938](https://github.com/tj-actions/changed-files/issues/1938))
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([ec75ae5](https://github.com/tj-actions/changed-files/commit/ec75ae5ab7296b81fd4cddb77294d6718932ebab)) - (tj-actions[bot])
- Update README.md ([8eced8a](https://github.com/tj-actions/changed-files/commit/8eced8a5dfe679a00fc7e6bcf4a149062d82cf71)) - (Tonye Jack)
- Update README.md ([b2d4e1b](https://github.com/tj-actions/changed-files/commit/b2d4e1b488ced71a4b179146ee5a7b8b5b3df94e)) - (Tonye Jack)
- Updated README.md ([#1920](https://github.com/tj-actions/changed-files/issues/1920))
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([3399f88](https://github.com/tj-actions/changed-files/commit/3399f8837f429519cf24ed4359003d14f3f41b0d)) - (tj-actions[bot])
- Updated README.md ([#1917](https://github.com/tj-actions/changed-files/issues/1917))
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([8e56bc0](https://github.com/tj-actions/changed-files/commit/8e56bc097abe73a65e6d3c0888ea6f640c4b5480)) - (tj-actions[bot])
- Update action.yml ([f6d3fe5](https://github.com/tj-actions/changed-files/commit/f6d3fe51790f667e42e9dc12cf25330b9fd74c3f)) - (Tonye Jack)
- Update README.md ([efa99ea](https://github.com/tj-actions/changed-files/commit/efa99ea361dae4d03a985a185259587543eede5c)) - (Tonye Jack)
- Update README.md ([6d8f9bd](https://github.com/tj-actions/changed-files/commit/6d8f9bd37957780639752a3b4b505f4069c40711)) - (Tonye Jack)
- Updated README.md ([#1915](https://github.com/tj-actions/changed-files/issues/1915))
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([7daee9e](https://github.com/tj-actions/changed-files/commit/7daee9e7cfe9c6e0cb6a782ba9785239ce9ee710)) - (tj-actions[bot])
- Update README.md ([99c80bd](https://github.com/tj-actions/changed-files/commit/99c80bdd472eb81ca8c582122685b14030d15bf4)) - (Tonye Jack)
- Updated README.md ([#1911](https://github.com/tj-actions/changed-files/issues/1911))
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([aa31060](https://github.com/tj-actions/changed-files/commit/aa3106085139b0f9138cf44fe701756ff9ee97b2)) - (tj-actions[bot])
- Update README.md ([d3ac2a0](https://github.com/tj-actions/changed-files/commit/d3ac2a064b75442d15c932e0ade4949a9e701720)) - (Tonye Jack)
- Updated README.md ([#1896](https://github.com/tj-actions/changed-files/issues/1896))
Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([df12603](https://github.com/tj-actions/changed-files/commit/df12603b45b253b6bc04da5357a791da6d645f36)) - (tj-actions[bot])
- Updated README.md ([#1894](https://github.com/tj-actions/changed-files/issues/1894))
Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> ([31b9c0a](https://github.com/tj-actions/changed-files/commit/31b9c0a5412203ed77a8c8073d72fbc01afc5d22)) - (tj-actions[bot])
## <!-- 3 -->📚 Documentation
- Add codesculpture as a contributor for code, and bug ([#1937](https://github.com/tj-actions/changed-files/issues/1937)) ([4333ab5](https://github.com/tj-actions/changed-files/commit/4333ab5b20c7b9aa411f4a07771329cfb0c76a8c)) - (allcontributors[bot])
- Add KeisukeYamashita as a contributor for doc ([#1919](https://github.com/tj-actions/changed-files/issues/1919)) ([ac897da](https://github.com/tj-actions/changed-files/commit/ac897da4f16ed414adb6afa4be273b632dda0e0f)) - (allcontributors[bot])
- Add dan-hill2802 as a contributor for doc ([#1910](https://github.com/tj-actions/changed-files/issues/1910)) ([e57fb1b](https://github.com/tj-actions/changed-files/commit/e57fb1b8ebd3184b29316b19d14d36e672dfa805)) - (allcontributors[bot])
- Add levenleven as a contributor for doc ([#1893](https://github.com/tj-actions/changed-files/issues/1893)) ([bb9b5e8](https://github.com/tj-actions/changed-files/commit/bb9b5e8363dd295a835a4b7a10ff92ae4f021798)) - (allcontributors[bot])
## <!-- 30 -->📝 Other
- Correct bash loop in examples ([#1908](https://github.com/tj-actions/changed-files/issues/1908))
Co-authored-by: Tonye Jack <jtonye@ymail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> ([54c5610](https://github.com/tj-actions/changed-files/commit/54c56103aa0c1a94083e91d0b68e8a5e48a330b5)) - (Daniel Hill)
## <!-- 7 -->⚙️ Miscellaneous Tasks
- **deps:** Update github artifact actions to v4 (major) ([#1936](https://github.com/tj-actions/changed-files/issues/1936)) ([68bd453](https://github.com/tj-actions/changed-files/commit/68bd4537bdc54c6655242c1abe305f4db218e355)) - (renovate[bot])
- **deps:** Update dependency eslint-plugin-jest to v27.9.0 ([f0ce41b](https://github.com/tj-actions/changed-files/commit/f0ce41b71c3bb642dfc7cb1ab61d14d3b56af681)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.19 ([ce451bf](https://github.com/tj-actions/changed-files/commit/ce451bf4305b235566956f53995646542519bb6d)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.18 ([7592e9e](https://github.com/tj-actions/changed-files/commit/7592e9e85578b94665efe3910aef29cc3c580acf)) - (renovate[bot])
- **deps:** Lock file maintenance ([999653c](https://github.com/tj-actions/changed-files/commit/999653c6727cb4c932803b25be2a0f5e8b639428)) - (renovate[bot])
- **deps:** Update dependency eslint-plugin-jest to v27.8.0 ([6cf4c21](https://github.com/tj-actions/changed-files/commit/6cf4c21fdf9b364e92a686e7ef69bc6e9499a622)) - (renovate[bot])
- Update codacy-analysis.yml ([#1929](https://github.com/tj-actions/changed-files/issues/1929)) ([09ee51b](https://github.com/tj-actions/changed-files/commit/09ee51bee3431c6c679313bdd0f8539ec345d71b)) - (Tonye Jack)
- **deps:** Update typescript-eslint monorepo to v7 (major) ([#1927](https://github.com/tj-actions/changed-files/issues/1927)) ([13fa140](https://github.com/tj-actions/changed-files/commit/13fa1402a766abdaa44e85fe59bdd652f26fb1e3)) - (renovate[bot])
- **deps:** Lock file maintenance ([049d7fd](https://github.com/tj-actions/changed-files/commit/049d7fd63935c64ac0615242d973a72f79fb7861)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.17 ([2e90fbb](https://github.com/tj-actions/changed-files/commit/2e90fbb74b68ff52de2335c534fd88dd4df333bb)) - (renovate[bot])
- **deps:** Update codacy/codacy-analysis-cli-action action to v4.4.0 ([2a9db54](https://github.com/tj-actions/changed-files/commit/2a9db54a6d9228d6731a7a28757b6dda48ffb5e7)) - (renovate[bot])
- **deps:** Update actions/setup-node action to v4.0.2 ([d0d5671](https://github.com/tj-actions/changed-files/commit/d0d5671ef76808f63c72ef7f5ac4ec7bb88aab3c)) - (renovate[bot])
- Update README.md ([#1922](https://github.com/tj-actions/changed-files/issues/1922)) ([97120ff](https://github.com/tj-actions/changed-files/commit/97120ff1f582e850f1e543bd317c4430a90738dd)) - (Tonye Jack)
- Update workflow-run-example.yml ([#1921](https://github.com/tj-actions/changed-files/issues/1921)) ([9299962](https://github.com/tj-actions/changed-files/commit/9299962a594f73b73738005ba86c46fac9aa9f8c)) - (Tonye Jack)
- **deps:** Update typescript-eslint monorepo to v6.21.0 ([589fb70](https://github.com/tj-actions/changed-files/commit/589fb70c81f4092791f63c5b9d5afadaa010ce4a)) - (renovate[bot])
- **deps:** Update dependency prettier to v3.2.5 ([5e7cbf5](https://github.com/tj-actions/changed-files/commit/5e7cbf5fdb0a73516874da582461d3b20594a4ee)) - (renovate[bot])
- **deps:** Lock file maintenance ([b4d6d28](https://github.com/tj-actions/changed-files/commit/b4d6d28988c21e97bc68d80fe4f3869808fc2ccc)) - (renovate[bot])
- **deps:** Update tj-actions/verify-changed-files action to v18 ([#1912](https://github.com/tj-actions/changed-files/issues/1912)) ([8370e6e](https://github.com/tj-actions/changed-files/commit/8370e6e6ef8b17619dcfd5df473376b6a29fd38d)) - (renovate[bot])
- Create greetings workflow ([#1909](https://github.com/tj-actions/changed-files/issues/1909)) ([926735a](https://github.com/tj-actions/changed-files/commit/926735a61eb7d21e371d03839cc34234af5e3154)) - (Tonye Jack)
- **deps:** Update dependency @types/node to v20.11.16 ([91df40b](https://github.com/tj-actions/changed-files/commit/91df40b8820291e54292e540e88890dc714cbea0)) - (renovate[bot])
- **deps:** Update dependency @types/jest to v29.5.12 ([28396e9](https://github.com/tj-actions/changed-files/commit/28396e96588ea678169a84011413fca4caffd650)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.15 ([3a66e2a](https://github.com/tj-actions/changed-files/commit/3a66e2a7e4fe21d25ecb52b6fce34961fe145069)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.14 ([35f3202](https://github.com/tj-actions/changed-files/commit/35f3202fd5e18d84a08b1a801e27dae5937f8861)) - (renovate[bot])
- **deps:** Update peter-evans/create-pull-request action to v6 ([#1903](https://github.com/tj-actions/changed-files/issues/1903)) ([2b30af4](https://github.com/tj-actions/changed-files/commit/2b30af482a4d71219f529e7d7003fdd9daaf0ab8)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.13 ([a93bcf4](https://github.com/tj-actions/changed-files/commit/a93bcf46e0c0e0699fe7a4d16906f27be0dda5bc)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.12 ([6d4c555](https://github.com/tj-actions/changed-files/commit/6d4c555c7d6cf1c77671254c2c2a9d713f5c5476)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.11 ([507a8c7](https://github.com/tj-actions/changed-files/commit/507a8c703d2415e979369d17911bf6a5003eb8f3)) - (renovate[bot])
- Update test ([#1899](https://github.com/tj-actions/changed-files/issues/1899)) ([3a7052c](https://github.com/tj-actions/changed-files/commit/3a7052c24aae082076d23f357177e111b201c4d4)) - (Tonye Jack)
- **deps:** Update typescript-eslint monorepo to v6.20.0 ([782eb12](https://github.com/tj-actions/changed-files/commit/782eb123a95b8e0dbce4b402f24b2b3b8fc82791)) - (renovate[bot])
- **deps:** Lock file maintenance ([9134dac](https://github.com/tj-actions/changed-files/commit/9134dac8f6b4c8a40e0518e486edff3560e20ead)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.10 ([ba0a561](https://github.com/tj-actions/changed-files/commit/ba0a561b1342d8019ab99e5fc6b9146fc669fe49)) - (renovate[bot])
- Fix broken matrix example links ([#1891](https://github.com/tj-actions/changed-files/issues/1891)) ([8d35cbb](https://github.com/tj-actions/changed-files/commit/8d35cbb00f191ec43b7f5dddf3b2e7304677b75d)) - (Aleksey Levenstein)
- **deps:** Update dependency @types/node to v20.11.9 ([82dd654](https://github.com/tj-actions/changed-files/commit/82dd6547dc05944a5d7e90892a9eca812ff864ed)) - (renovate[bot])
- **deps:** Lock file maintenance ([6d42539](https://github.com/tj-actions/changed-files/commit/6d42539842805201a6c4eca7a86c1f5d1e6293fb)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.8 ([08dedfb](https://github.com/tj-actions/changed-files/commit/08dedfb681e840f67fb7804f1879452cb6e3be6c)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.7 ([f6d9fa1](https://github.com/tj-actions/changed-files/commit/f6d9fa10e0aa52b19c5d717b320f6ddc24858f19)) - (renovate[bot])
- **deps:** Update dependency @types/uuid to v9.0.8 ([9eb0d76](https://github.com/tj-actions/changed-files/commit/9eb0d763aec34f920761d9f349680a549958fe6e)) - (renovate[bot])
## <!-- 9 -->⬆️ Upgrades
- Upgraded to v42.0.2 ([#1886](https://github.com/tj-actions/changed-files/issues/1886))
Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([51d2f88](https://github.com/tj-actions/changed-files/commit/51d2f88f079c072d026257c3f20e2823e7e3577f)) - (tj-actions[bot])
# [42.0.2](https://github.com/tj-actions/changed-files/compare/v42.0.1...v42.0.2) - (2024-01-25)
## <!-- 0 -->🚀 Features
- Enhance error handling for non-git directories ([#1885](https://github.com/tj-actions/changed-files/issues/1885)) ([90a06d6](https://github.com/tj-actions/changed-files/commit/90a06d6ba9543371ab4df8eeca0be07ca6054959)) - (Tonye Jack)
## <!-- 9 -->⬆️ Upgrades
- Upgraded to v42.0.1 ([#1884](https://github.com/tj-actions/changed-files/issues/1884))
Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([2cb2c92](https://github.com/tj-actions/changed-files/commit/2cb2c9234e9dc3b8eaac2ababc3f355e80e47963)) - (tj-actions[bot])
# [42.0.1](https://github.com/tj-actions/changed-files/compare/v42.0.0...v42.0.1) - (2024-01-24)
## <!-- 16 --> Add
- Added missing changes and modified dist assets.
([ea024b2](https://github.com/tj-actions/changed-files/commit/ea024b2d7f80389ba16e7084b20265cb7dfe230f)) - (GitHub Action)
- Added missing changes and modified dist assets.
([3af07c2](https://github.com/tj-actions/changed-files/commit/3af07c2040da68166f613248bd8e9cd28fb581e3)) - (GitHub Action)
## <!-- 26 -->🔄 Update
- Update env.ts ([3680129](https://github.com/tj-actions/changed-files/commit/3680129aa2971333ef3d148024520cdc5327a6b7)) - (Tonye Jack)
## <!-- 7 -->⚙️ Miscellaneous Tasks
- **deps:** Update dependency @types/node to v20.11.6 ([ac21d93](https://github.com/tj-actions/changed-files/commit/ac21d93904fb48e7f76ce4bd2a4d197f67e34abe)) - (renovate[bot])
- **deps:** Update typescript-eslint monorepo to v6.19.1 ([a4637ea](https://github.com/tj-actions/changed-files/commit/a4637ea6e7d9a502f6edb845b6c65086c5bce55f)) - (renovate[bot])
- **deps:** Update dependency ts-jest to v29.1.2 ([fd9998c](https://github.com/tj-actions/changed-files/commit/fd9998cf5fcac4b0fff205a58ec694bf596169c8)) - (renovate[bot])
- **deps:** Lock file maintenance ([db4e584](https://github.com/tj-actions/changed-files/commit/db4e5848448e4b540e7e7dcbdc7aab3c88bfcf47)) - (renovate[bot])
- Rename example worflows from test to example ([#1878](https://github.com/tj-actions/changed-files/issues/1878)) ([c6543c4](https://github.com/tj-actions/changed-files/commit/c6543c497aea61c2263b735dece03b23383441f0)) - (Tonye Jack)
- Update README.md ([#1877](https://github.com/tj-actions/changed-files/issues/1877)) ([88f9f3e](https://github.com/tj-actions/changed-files/commit/88f9f3efbb5a8fe2acff4139babc1d6aeafa5e72)) - (Tonye Jack)
- **deps:** Lock file maintenance ([5d866cb](https://github.com/tj-actions/changed-files/commit/5d866cbe77002ed91912202826ed253b808a9133)) - (renovate[bot])
- **deps:** Update tj-actions/eslint-changed-files action to v23 ([#1875](https://github.com/tj-actions/changed-files/issues/1875)) ([346f237](https://github.com/tj-actions/changed-files/commit/346f237a1734287fa772ee254047beecabcdbdf2)) - (renovate[bot])
## <!-- 9 -->⬆️ Upgrades
- Upgraded to v42 ([#1874](https://github.com/tj-actions/changed-files/issues/1874))
Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([c037f1e](https://github.com/tj-actions/changed-files/commit/c037f1e7c56c7884b2d7d24c36cd8a0bc2c20687)) - (tj-actions[bot])
# [42.0.0](https://github.com/tj-actions/changed-files/compare/v41.1.2...v42.0.0) - (2024-01-18) # [42.0.0](https://github.com/tj-actions/changed-files/compare/v41.1.2...v42.0.0) - (2024-01-18)
## <!-- 0 -->🚀 Features ## <!-- 0 -->🚀 Features

View File

@@ -9,17 +9,17 @@
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-22-orange.svg?style=flat-square)](#contributors-) [![All Contributors](https://img.shields.io/badge/all_contributors-26-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END --> <!-- ALL-CONTRIBUTORS-BADGE:END -->
## changed-files ## changed-files
Effortlessly track all changed files and directories relative to a target branch, preceding commit or the last remote commit returning **relative paths** from the project root using this GitHub action. Effortlessly track all changed files and directories relative to a target branch, the current branch (preceding commit or the last remote commit), multiple branches, or custom commits returning **relative paths** from the project root using this GitHub action.
> \[!NOTE] > \[!NOTE]
> >
> * This action solely identifies files that have changed within the context of events such as `pull_request*`, `push`, and more. However, it doesn't detect pending uncommitted changes created during the workflow execution. > * This action solely identifies files that have changed for events such as [`pull_request*`, `push`, `merge_group`, `release`, and many more](#other-supported-events-electron). However, it doesn't detect pending uncommitted changes created during the workflow execution.
> >
> See: https://github.com/tj-actions/verify-changed-files instead > See: https://github.com/tj-actions/verify-changed-files instead
@@ -28,7 +28,7 @@ Effortlessly track all changed files and directories relative to a target branch
* [Features 🚀](#features-) * [Features 🚀](#features-)
* [Usage 💻](#usage-) * [Usage 💻](#usage-)
* [On `pull_request` 🔀](#on-pull_request-) * [On `pull_request` 🔀](#on-pull_request-)
* [Using local .git history 📁](#using-local-git-history-) * [Using local .git directory 📁](#using-local-git-directory-)
* [Using Github's API :octocat:](#using-githubs-api-octocat) * [Using Github's API :octocat:](#using-githubs-api-octocat)
* [On `push` ⬆️](#on-push-) * [On `push` ⬆️](#on-push-)
* [Other supported events :electron:](#other-supported-events-electron) * [Other supported events :electron:](#other-supported-events-electron)
@@ -54,7 +54,7 @@ Effortlessly track all changed files and directories relative to a target branch
* Scales to handle large/mono repositories. * Scales to handle large/mono repositories.
* Supports Git submodules. * Supports Git submodules.
* Supports [merge queues](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue) for pull requests. * Supports [merge queues](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue) for pull requests.
* Generates escaped [JSON output for running matrix jobs](https://github.com/tj-actions/changed-files/blob/main/.github/workflows/matrix-test.yml) based on changed files. * Generates escaped [JSON output for running matrix jobs](https://github.com/tj-actions/changed-files/blob/main/.github/workflows/matrix-example.yml) based on changed files.
* Lists changed directories. * Lists changed directories.
* Limits matching changed directories to a specified maximum depth. * Limits matching changed directories to a specified maximum depth.
* Optionally excludes the current directory. * Optionally excludes the current directory.
@@ -97,7 +97,7 @@ Visit the [discussions for more information](https://github.com/tj-actions/chang
Detect changes to all files in a Pull request relative to the target branch or since the last pushed commit. Detect changes to all files in a Pull request relative to the target branch or since the last pushed commit.
#### Using local .git history 📁 #### Using local .git directory 📁
```yaml ```yaml
name: CI name: CI
@@ -119,7 +119,9 @@ jobs:
with: with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit. fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
# -----------------------------------------------------------------------------------------------------------
# Example 1 # Example 1
# -----------------------------------------------------------------------------------------------------------
- name: Get changed files - name: Get changed files
id: changed-files id: changed-files
uses: tj-actions/changed-files@v42 uses: tj-actions/changed-files@v42
@@ -131,11 +133,13 @@ jobs:
env: env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: | run: |
for file in "$ALL_CHANGED_FILES"; do for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed" echo "$file was changed"
done done
# -----------------------------------------------------------------------------------------------------------
# Example 2 # Example 2
# -----------------------------------------------------------------------------------------------------------
- name: Get all changed markdown files - name: Get all changed markdown files
id: changed-markdown-files id: changed-markdown-files
uses: tj-actions/changed-files@v42 uses: tj-actions/changed-files@v42
@@ -149,11 +153,13 @@ jobs:
env: env:
ALL_CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }} ALL_CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }}
run: | run: |
for file in "$ALL_CHANGED_FILES"; do for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed" echo "$file was changed"
done done
# -----------------------------------------------------------------------------------------------------------
# Example 3 # Example 3
# -----------------------------------------------------------------------------------------------------------
- name: Get all test, doc and src files that have changed - name: Get all test, doc and src files that have changed
id: changed-files-yaml id: changed-files-yaml
uses: tj-actions/changed-files@v42 uses: tj-actions/changed-files@v42
@@ -186,7 +192,9 @@ jobs:
echo "One or more doc file(s) has changed." echo "One or more doc file(s) has changed."
echo "List all the files that have changed: $DOC_ALL_CHANGED_FILES" echo "List all the files that have changed: $DOC_ALL_CHANGED_FILES"
# Example 3 # -----------------------------------------------------------------------------------------------------------
# Example 4
# -----------------------------------------------------------------------------------------------------------
- name: Get changed files in the docs folder - name: Get changed files in the docs folder
id: changed-files-specific id: changed-files-specific
uses: tj-actions/changed-files@v42 uses: tj-actions/changed-files@v42
@@ -237,7 +245,7 @@ jobs:
env: env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: | run: |
for file in "$ALL_CHANGED_FILES"; do for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed" echo "$file was changed"
done done
``` ```
@@ -281,7 +289,7 @@ jobs:
env: env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: | run: |
for file in "$ALL_CHANGED_FILES"; do for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed" echo "$file was changed"
done done
... ...
@@ -292,6 +300,7 @@ jobs:
* [schedule](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule) * [schedule](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule)
* [release](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release) * [release](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release)
* [workflow\_dispatch](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch) * [workflow\_dispatch](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch)
* [workflow\_run](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run)
* [merge\_group](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#merge_group) * [merge\_group](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#merge_group)
* [issue\_comment](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment) * [issue\_comment](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment)
* ...and many more * ...and many more
@@ -312,7 +321,8 @@ Support this project with a :star:
> >
> * When using `files_yaml*` inputs: > * When using `files_yaml*` inputs:
> * All keys must start with a letter or `_` and contain only alphanumeric characters, `-`, or `_`. > * All keys must start with a letter or `_` and contain only alphanumeric characters, `-`, or `_`.
> For example, `test` or `test_key` or `tesT-key` are all valid. >
> For example, `test` or `test_key` or `test-key` or `_test_key` are all valid.
## Inputs ⚙️ ## Inputs ⚙️
@@ -478,7 +488,7 @@ Support this project with a :star:
# Output list of changed files in a JSON formatted # Output list of changed files in a JSON formatted
# string which can be used for matrix jobs. Example: # string which can be used for matrix jobs. Example:
# https://github.com/tj-actions/changed-files/blob/main/.github/workflows/matrix-test.yml # https://github.com/tj-actions/changed-files/blob/main/.github/workflows/matrix-example.yml
# Type: boolean # Type: boolean
# Default: "false" # Default: "false"
json: '' json: ''
@@ -583,10 +593,10 @@ Support this project with a :star:
# Default: "false" # Default: "false"
since_last_remote_commit: '' since_last_remote_commit: ''
# Skip the initial fetch to improve performance for shallow # Skip initially fetching additional history to improve performance for
# repositories. NOTE: This could lead to errors with missing # shallow repositories. NOTE: This could lead to errors with
# history and the intended use is limited to when # missing history. It's intended to be used when you've
# you've fetched the history necessary to perform the diff. # fetched all necessary history to perform the diff.
# Type: boolean # Type: boolean
# Default: "false" # Default: "false"
skip_initial_fetch: '' skip_initial_fetch: ''
@@ -655,7 +665,7 @@ Support this project with a :star:
| <a name="output_all_modified_files_count"></a>[all\_modified\_files\_count](#output_all_modified_files_count) | string | Returns the number of `all_modified_files` | | <a name="output_all_modified_files_count"></a>[all\_modified\_files\_count](#output_all_modified_files_count) | string | Returns the number of `all_modified_files` |
| <a name="output_all_old_new_renamed_files"></a>[all\_old\_new\_renamed\_files](#output_all_old_new_renamed_files) | string | Returns only files that are <br>Renamed and lists their old <br>and new names. **NOTE:** This <br>requires setting `include_all_old_new_renamed_files` to `true`. <br>Also, keep in mind that <br>this output is global and <br>wouldn't be nested in outputs <br>generated when the `*_yaml_*` input <br>is used. (R) | | <a name="output_all_old_new_renamed_files"></a>[all\_old\_new\_renamed\_files](#output_all_old_new_renamed_files) | string | Returns only files that are <br>Renamed and lists their old <br>and new names. **NOTE:** This <br>requires setting `include_all_old_new_renamed_files` to `true`. <br>Also, keep in mind that <br>this output is global and <br>wouldn't be nested in outputs <br>generated when the `*_yaml_*` input <br>is used. (R) |
| <a name="output_all_old_new_renamed_files_count"></a>[all\_old\_new\_renamed\_files\_count](#output_all_old_new_renamed_files_count) | string | Returns the number of `all_old_new_renamed_files` | | <a name="output_all_old_new_renamed_files_count"></a>[all\_old\_new\_renamed\_files\_count](#output_all_old_new_renamed_files_count) | string | Returns the number of `all_old_new_renamed_files` |
| <a name="output_any_changed"></a>[any\_changed](#output_any_changed) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs has changed. i.e. <br>*includes a combination of all added, copied, modified and renamed files (ACMR)*. | | <a name="output_any_changed"></a>[any\_changed](#output_any_changed) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs have changed. i.e. <br>*includes a combination of all added, copied, modified and renamed files (ACMR)*. |
| <a name="output_any_deleted"></a>[any\_deleted](#output_any_deleted) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs has been deleted. <br>(D) | | <a name="output_any_deleted"></a>[any\_deleted](#output_any_deleted) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs has been deleted. <br>(D) |
| <a name="output_any_modified"></a>[any\_modified](#output_any_modified) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs has been modified. <br>i.e. *includes a combination of all added, copied, modified, renamed, and deleted files (ACMRD)*. | | <a name="output_any_modified"></a>[any\_modified](#output_any_modified) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs has been modified. <br>i.e. *includes a combination of all added, copied, modified, renamed, and deleted files (ACMRD)*. |
| <a name="output_changed_keys"></a>[changed\_keys](#output_changed_keys) | string | Returns all changed YAML keys <br>when the `files_yaml` input is <br>used. i.e. *key that contains any path that has either been added, copied, modified, and renamed (ACMR)* | | <a name="output_changed_keys"></a>[changed\_keys](#output_changed_keys) | string | Returns all changed YAML keys <br>when the `files_yaml` input is <br>used. i.e. *key that contains any path that has either been added, copied, modified, and renamed (ACMR)* |
@@ -666,7 +676,7 @@ Support this project with a :star:
| <a name="output_modified_files"></a>[modified\_files](#output_modified_files) | string | Returns only files that are <br>Modified (M). | | <a name="output_modified_files"></a>[modified\_files](#output_modified_files) | string | Returns only files that are <br>Modified (M). |
| <a name="output_modified_files_count"></a>[modified\_files\_count](#output_modified_files_count) | string | Returns the number of `modified_files` | | <a name="output_modified_files_count"></a>[modified\_files\_count](#output_modified_files_count) | string | Returns the number of `modified_files` |
| <a name="output_modified_keys"></a>[modified\_keys](#output_modified_keys) | string | Returns all modified YAML keys <br>when the `files_yaml` input is <br>used. i.e. *key that contains any path that has either been added, copied, modified, and deleted (ACMRD)* | | <a name="output_modified_keys"></a>[modified\_keys](#output_modified_keys) | string | Returns all modified YAML keys <br>when the `files_yaml` input is <br>used. i.e. *key that contains any path that has either been added, copied, modified, and deleted (ACMRD)* |
| <a name="output_only_changed"></a>[only\_changed](#output_only_changed) | string | Returns `true` when only files <br>provided using the `files*` or `files_ignore*` inputs <br>has changed. i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*. | | <a name="output_only_changed"></a>[only\_changed](#output_only_changed) | string | Returns `true` when only files <br>provided using the `files*` or `files_ignore*` inputs <br>have changed. i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*. |
| <a name="output_only_deleted"></a>[only\_deleted](#output_only_deleted) | string | Returns `true` when only files <br>provided using the `files*` or `files_ignore*` inputs <br>has been deleted. (D) | | <a name="output_only_deleted"></a>[only\_deleted](#output_only_deleted) | string | Returns `true` when only files <br>provided using the `files*` or `files_ignore*` inputs <br>has been deleted. (D) |
| <a name="output_only_modified"></a>[only\_modified](#output_only_modified) | string | Returns `true` when only files <br>provided using the `files*` or `files_ignore*` inputs <br>has been modified. (ACMRD). | | <a name="output_only_modified"></a>[only\_modified](#output_only_modified) | string | Returns `true` when only files <br>provided using the `files*` or `files_ignore*` inputs <br>has been modified. (ACMRD). |
| <a name="output_other_changed_files"></a>[other\_changed\_files](#output_other_changed_files) | string | Returns all other changed files <br>not listed in the files <br>input i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*. | | <a name="output_other_changed_files"></a>[other\_changed\_files](#output_other_changed_files) | string | Returns all other changed files <br>not listed in the files <br>input i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*. |
@@ -728,7 +738,7 @@ The format of the version string is as follows:
env: env:
ADDED_FILES: ${{ steps.changed-files.outputs.added_files }} ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
run: | run: |
for file in "$ADDED_FILES"; do for file in ${ADDED_FILES}; do
echo "$file was added" echo "$file was added"
done done
... ...
@@ -766,7 +776,7 @@ See [inputs](#inputs) for more information.
env: env:
ADDED_FILES: ${{ steps.changed-files.outputs.added_files }} ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
run: | run: |
for file in "$ADDED_FILES"; do for file in ${ADDED_FILES}; do
echo "$file was added" echo "$file was added"
done done
... ...
@@ -891,7 +901,7 @@ See [inputs](#inputs) for more information.
env: env:
DELETED_FILES: ${{ steps.changed-files-specific.outputs.deleted_files }} DELETED_FILES: ${{ steps.changed-files-specific.outputs.deleted_files }}
run: | run: |
for file in "$DELETED_FILES"; do for file in ${DELETED_FILES}; do
echo "$file was deleted" echo "$file was deleted"
done done
@@ -900,7 +910,7 @@ See [inputs](#inputs) for more information.
env: env:
DELETED_FILES: ${{ steps.changed-files-specific.outputs.deleted_files }} DELETED_FILES: ${{ steps.changed-files-specific.outputs.deleted_files }}
run: | run: |
for file in "$DELETED_FILES"; do for file in ${DELETED_FILES}; do
echo "$file was deleted" echo "$file was deleted"
done done
... ...
@@ -1006,11 +1016,16 @@ jobs:
id: changed-files id: changed-files
uses: tj-actions/changed-files@v42 uses: tj-actions/changed-files@v42
- name: List changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
echo "List all the files that have changed: $ALL_CHANGED_FILES"
- name: Get changed files in the .github folder - name: Get changed files in the .github folder
id: changed-files-specific id: changed-files-specific
uses: tj-actions/changed-files@v42 uses: tj-actions/changed-files@v42
with: with:
base_sha: ${{ steps.get-base-sha.outputs.base_sha }}
files: .github/** files: .github/**
- name: Run step if any file(s) in the .github folder change - name: Run step if any file(s) in the .github folder change
@@ -1049,7 +1064,7 @@ See [inputs](#inputs) for more information.
ADDED_FILES: |- ADDED_FILES: |-
${{ steps.changed-files-for-dir1.outputs.added_files }} ${{ steps.changed-files-for-dir1.outputs.added_files }}
run: | run: |
for file in "$ADDED_FILES"; do for file in ${ADDED_FILES}; do
echo "$file was added" echo "$file was added"
done done
... ...
@@ -1218,7 +1233,7 @@ See [inputs](#inputs) for more information.
* [coder/code-server: uses tj-actions/changed-files to automate detecting changes and run steps based on the outcome](https://github.com/coder/code-server/blob/c32a31d802f679846876b8ad9aacff6cf7b5361d/.github/workflows/build.yaml#L48) * [coder/code-server: uses tj-actions/changed-files to automate detecting changes and run steps based on the outcome](https://github.com/coder/code-server/blob/c32a31d802f679846876b8ad9aacff6cf7b5361d/.github/workflows/build.yaml#L48)
* [tldr-pages/tldr: uses tj-actions/changed-files to automate detecting spelling errors](https://github.com/tldr-pages/tldr/blob/main/.github/workflows/codespell.yml#L14) * [tldr-pages/tldr: uses tj-actions/changed-files to automate detecting spelling errors](https://github.com/tldr-pages/tldr/blob/c1b714c55cb0048037b79a681a10d7f3ddb0164c/.github/workflows/codespell.yml#L18-L26)
* [nodejs/docker-node: uses tj-actions/changed-files to generate matrix jobs based on changes detected](https://github.com/nodejs/docker-node/blob/3c4fa6daf06a4786d202f2f610351837806a0380/.github/workflows/build-test.yml#L29) * [nodejs/docker-node: uses tj-actions/changed-files to generate matrix jobs based on changes detected](https://github.com/nodejs/docker-node/blob/3c4fa6daf06a4786d202f2f610351837806a0380/.github/workflows/build-test.yml#L29)
@@ -1226,10 +1241,12 @@ See [inputs](#inputs) for more information.
* [aws-doc-sdk-examples: uses tj-actions/changed-files to automate testing](https://github.com/awsdocs/aws-doc-sdk-examples/blob/2393723ef6b0cad9502f4852f5c72f7be58ca89d/.github/workflows/javascript.yml#L22) * [aws-doc-sdk-examples: uses tj-actions/changed-files to automate testing](https://github.com/awsdocs/aws-doc-sdk-examples/blob/2393723ef6b0cad9502f4852f5c72f7be58ca89d/.github/workflows/javascript.yml#L22)
* [nhost: uses tj-actions/changed-files to automate testing based on changes detected](https://github.com/nhost/nhost/blob/main/.github/workflows/ci.yaml#L44-L48) * [nhost: uses tj-actions/changed-files to automate testing based on changes detected](https://github.com/nhost/nhost/blob/71a8ce444618a8ac4d660518172fba4883c4014b/.github/workflows/ci.yaml#L44-L48)
* [qmk\_firmware uses tj-actions/changed-files to run linters](https://github.com/qmk/qmk_firmware/blob/7a737235ffd49c32d2c5561e8fe53fd96baa7f96/.github/workflows/lint.yml#L30) * [qmk\_firmware uses tj-actions/changed-files to run linters](https://github.com/qmk/qmk_firmware/blob/7a737235ffd49c32d2c5561e8fe53fd96baa7f96/.github/workflows/lint.yml#L30)
* [argo-cd uses tj-actions/chnaged-files to detect changed frontend or backend files](https://github.com/argoproj/argo-cd/blob/5bc1850aa1d26301043be9f2fb825d88c80c111c/.github/workflows/ci-build.yaml#L33)
* [argo-workflows uses tj-actions/changed-files to run specific jobs based on changes detected](https://github.com/argoproj/argo-workflows/blob/baef4856ff2603c76dbe277c825eaa3f9788fc91/.github/workflows/ci-build.yaml#L34) * [argo-workflows uses tj-actions/changed-files to run specific jobs based on changes detected](https://github.com/argoproj/argo-workflows/blob/baef4856ff2603c76dbe277c825eaa3f9788fc91/.github/workflows/ci-build.yaml#L34)
And many more... And many more...
@@ -1329,6 +1346,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
</tr> </tr>
<tr> <tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rodrigorfk"><img src="https://avatars.githubusercontent.com/u/1995033?v=4?s=100" width="100px;" alt="Rodrigo Fior Kuntzer"/><br /><sub><b>Rodrigo Fior Kuntzer</b></sub></a><br /><a href="https://github.com/tj-actions/changed-files/commits?author=rodrigorfk" title="Code">💻</a> <a href="https://github.com/tj-actions/changed-files/commits?author=rodrigorfk" title="Tests">⚠️</a> <a href="https://github.com/tj-actions/changed-files/issues?q=author%3Arodrigorfk" title="Bug reports">🐛</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/rodrigorfk"><img src="https://avatars.githubusercontent.com/u/1995033?v=4?s=100" width="100px;" alt="Rodrigo Fior Kuntzer"/><br /><sub><b>Rodrigo Fior Kuntzer</b></sub></a><br /><a href="https://github.com/tj-actions/changed-files/commits?author=rodrigorfk" title="Code">💻</a> <a href="https://github.com/tj-actions/changed-files/commits?author=rodrigorfk" title="Tests">⚠️</a> <a href="https://github.com/tj-actions/changed-files/issues?q=author%3Arodrigorfk" title="Bug reports">🐛</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/levenleven"><img src="https://avatars.githubusercontent.com/u/6463364?v=4?s=100" width="100px;" alt="Aleksey Levenstein"/><br /><sub><b>Aleksey Levenstein</b></sub></a><br /><a href="https://github.com/tj-actions/changed-files/commits?author=levenleven" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/dan-hill2802"><img src="https://avatars.githubusercontent.com/u/5046322?v=4?s=100" width="100px;" alt="Daniel Hill"/><br /><sub><b>Daniel Hill</b></sub></a><br /><a href="https://github.com/tj-actions/changed-files/commits?author=dan-hill2802" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://keisukeyamashita.com"><img src="https://avatars.githubusercontent.com/u/23056537?v=4?s=100" width="100px;" alt="KeisukeYamashita"/><br /><sub><b>KeisukeYamashita</b></sub></a><br /><a href="https://github.com/tj-actions/changed-files/commits?author=KeisukeYamashita" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/codesculpture"><img src="https://avatars.githubusercontent.com/u/63452117?v=4?s=100" width="100px;" alt="Aravind"/><br /><sub><b>Aravind</b></sub></a><br /><a href="https://github.com/tj-actions/changed-files/commits?author=codesculpture" title="Code">💻</a> <a href="https://github.com/tj-actions/changed-files/issues?q=author%3Acodesculpture" title="Bug reports">🐛</a></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@@ -127,7 +127,7 @@ inputs:
required: false required: false
default: "false" default: "false"
json: json:
description: "Output list of changed files in a JSON formatted string which can be used for matrix jobs. Example: https://github.com/tj-actions/changed-files/blob/main/.github/workflows/matrix-test.yml" description: "Output list of changed files in a JSON formatted string which can be used for matrix jobs. Example: https://github.com/tj-actions/changed-files/blob/main/.github/workflows/matrix-example.yml"
required: false required: false
default: "false" default: "false"
escape_json: escape_json:
@@ -144,8 +144,8 @@ inputs:
default: "50" default: "50"
skip_initial_fetch: skip_initial_fetch:
description: | description: |
Skip the initial fetch to improve performance for shallow repositories. Skip initially fetching additional history to improve performance for shallow repositories.
NOTE: This could lead to errors with missing history and the intended use is limited to when you've fetched the history necessary to perform the diff. NOTE: This could lead to errors with missing history. It's intended to be used when you've fetched all necessary history to perform the diff.
required: false required: false
default: "false" default: "false"
fetch_additional_submodule_history: fetch_additional_submodule_history:
@@ -266,9 +266,9 @@ outputs:
all_changed_files_count: all_changed_files_count:
description: "Returns the number of `all_changed_files`" description: "Returns the number of `all_changed_files`"
any_changed: any_changed:
description: "Returns `true` when any of the filenames provided using the `files*` or `files_ignore*` inputs has changed. i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*." description: "Returns `true` when any of the filenames provided using the `files*` or `files_ignore*` inputs have changed. i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*."
only_changed: only_changed:
description: "Returns `true` when only files provided using the `files*` or `files_ignore*` inputs has changed. i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*." description: "Returns `true` when only files provided using the `files*` or `files_ignore*` inputs have changed. i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*."
other_changed_files: other_changed_files:
description: "Returns all other changed files not listed in the files input i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*." description: "Returns all other changed files not listed in the files input i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*."
other_changed_files_count: other_changed_files_count:

202
dist/index.js generated vendored
View File

@@ -1108,7 +1108,7 @@ const getSHAForNonPullRequestEvent = (inputs, env, workingDirectory, isShallow,
}); });
exports.getSHAForNonPullRequestEvent = getSHAForNonPullRequestEvent; exports.getSHAForNonPullRequestEvent = getSHAForNonPullRequestEvent;
const getSHAForPullRequestEvent = (inputs, env, workingDirectory, isShallow, hasSubmodule, gitFetchExtraArgs) => __awaiter(void 0, void 0, void 0, function* () { const getSHAForPullRequestEvent = (inputs, env, workingDirectory, isShallow, hasSubmodule, gitFetchExtraArgs) => __awaiter(void 0, void 0, void 0, function* () {
var _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0; var _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
let targetBranch = (_m = (_l = github.context.payload.pull_request) === null || _l === void 0 ? void 0 : _l.base) === null || _m === void 0 ? void 0 : _m.ref; let targetBranch = (_m = (_l = github.context.payload.pull_request) === null || _l === void 0 ? void 0 : _l.base) === null || _m === void 0 ? void 0 : _m.ref;
const currentBranch = (_p = (_o = github.context.payload.pull_request) === null || _o === void 0 ? void 0 : _o.head) === null || _p === void 0 ? void 0 : _p.ref; const currentBranch = (_p = (_o = github.context.payload.pull_request) === null || _o === void 0 ? void 0 : _o.head) === null || _p === void 0 ? void 0 : _p.ref;
if (inputs.sinceLastRemoteCommit) { if (inputs.sinceLastRemoteCommit) {
@@ -1207,7 +1207,7 @@ const getSHAForPullRequestEvent = (inputs, env, workingDirectory, isShallow, has
}; };
} }
if (!((_s = (_r = github.context.payload.pull_request) === null || _r === void 0 ? void 0 : _r.base) === null || _s === void 0 ? void 0 : _s.ref) || if (!((_s = (_r = github.context.payload.pull_request) === null || _r === void 0 ? void 0 : _r.base) === null || _s === void 0 ? void 0 : _s.ref) ||
((_u = (_t = github.context.payload.head) === null || _t === void 0 ? void 0 : _t.repo) === null || _u === void 0 ? void 0 : _u.fork) === 'true') { ((_v = (_u = (_t = github.context.payload.pull_request) === null || _t === void 0 ? void 0 : _t.head) === null || _u === void 0 ? void 0 : _u.repo) === null || _v === void 0 ? void 0 : _v.fork) === true) {
diff = '..'; diff = '..';
} }
if (!previousSha || previousSha === currentSha) { if (!previousSha || previousSha === currentSha) {
@@ -1249,7 +1249,7 @@ const getSHAForPullRequestEvent = (inputs, env, workingDirectory, isShallow, has
} }
else { else {
if (github.context.payload.action === 'closed') { if (github.context.payload.action === 'closed') {
previousSha = (_w = (_v = github.context.payload.pull_request) === null || _v === void 0 ? void 0 : _v.base) === null || _w === void 0 ? void 0 : _w.sha; previousSha = (_x = (_w = github.context.payload.pull_request) === null || _w === void 0 ? void 0 : _w.base) === null || _x === void 0 ? void 0 : _x.sha;
} }
else { else {
previousSha = yield (0, utils_1.getRemoteBranchHeadSha)({ previousSha = yield (0, utils_1.getRemoteBranchHeadSha)({
@@ -1257,7 +1257,7 @@ const getSHAForPullRequestEvent = (inputs, env, workingDirectory, isShallow, has
branch: targetBranch branch: targetBranch
}); });
if (!previousSha) { if (!previousSha) {
previousSha = (_y = (_x = github.context.payload.pull_request) === null || _x === void 0 ? void 0 : _x.base) === null || _y === void 0 ? void 0 : _y.sha; previousSha = (_z = (_y = github.context.payload.pull_request) === null || _y === void 0 ? void 0 : _y.base) === null || _z === void 0 ? void 0 : _z.sha;
} }
} }
if (isShallow) { if (isShallow) {
@@ -1295,7 +1295,7 @@ const getSHAForPullRequestEvent = (inputs, env, workingDirectory, isShallow, has
} }
} }
if (!previousSha || previousSha === currentSha) { if (!previousSha || previousSha === currentSha) {
previousSha = (_0 = (_z = github.context.payload.pull_request) === null || _z === void 0 ? void 0 : _z.base) === null || _0 === void 0 ? void 0 : _0.sha; previousSha = (_1 = (_0 = github.context.payload.pull_request) === null || _0 === void 0 ? void 0 : _0.base) === null || _1 === void 0 ? void 0 : _1.sha;
} }
} }
if (!(yield (0, utils_1.canDiffCommits)({ if (!(yield (0, utils_1.canDiffCommits)({
@@ -1868,8 +1868,7 @@ function run() {
} }
else { else {
if (!hasGitDirectory) { if (!hasGitDirectory) {
core.info(`Running on a ${github.context.eventName} event...`); throw new Error(`Unable to locate the git repository in the given path: ${workingDirectory}.\n Please run actions/checkout before this action (Make sure the 'path' input is correct).\n If you intend to use Github's REST API note that only pull_request* events are supported. Current event is "${github.context.eventName}".`);
throw new Error(`Can't find local .git in ${workingDirectory} directory. Please run actions/checkout before this action (Make sure the 'path' input is correct). If you intend to use Github's REST API note that only pull_request* events are supported.`);
} }
core.info('Using local .git directory'); core.info('Using local .git directory');
yield getChangedFilesFromLocalGitHistory({ yield getChangedFilesFromLocalGitHistory({
@@ -2457,6 +2456,9 @@ const isInsideWorkTree = ({ cwd }) => __awaiter(void 0, void 0, void 0, function
ignoreReturnCode: true, ignoreReturnCode: true,
silent: !core.isDebug() silent: !core.isDebug()
}); });
if (stdout.trim() !== 'true') {
core.debug(`The current working directory is not inside a git repository: ${cwd}`);
}
return stdout.trim() === 'true'; return stdout.trim() === 'true';
}); });
exports.isInsideWorkTree = isInsideWorkTree; exports.isInsideWorkTree = isInsideWorkTree;
@@ -2586,7 +2588,7 @@ const canDiffCommits = ({ cwd, sha1, sha2, diff }) => __awaiter(void 0, void 0,
return true; return true;
} }
else { else {
const { exitCode, stderr } = yield exec.getExecOutput('git', ['diff', '--quiet', sha1, sha2], { const { exitCode, stderr } = yield exec.getExecOutput('git', ['diff', '--no-patch', sha1, sha2], {
cwd, cwd,
ignoreReturnCode: true, ignoreReturnCode: true,
silent: !core.isDebug() silent: !core.isDebug()
@@ -7119,7 +7121,7 @@ __export(dist_src_exports, {
module.exports = __toCommonJS(dist_src_exports); module.exports = __toCommonJS(dist_src_exports);
// pkg/dist-src/version.js // pkg/dist-src/version.js
var VERSION = "9.1.5"; var VERSION = "9.2.1";
// pkg/dist-src/normalize-paginated-list-response.js // pkg/dist-src/normalize-paginated-list-response.js
function normalizePaginatedListResponse(response) { function normalizePaginatedListResponse(response) {
@@ -7280,6 +7282,8 @@ var paginatingEndpoints = [
"GET /orgs/{org}/members/{username}/codespaces", "GET /orgs/{org}/members/{username}/codespaces",
"GET /orgs/{org}/migrations", "GET /orgs/{org}/migrations",
"GET /orgs/{org}/migrations/{migration_id}/repositories", "GET /orgs/{org}/migrations/{migration_id}/repositories",
"GET /orgs/{org}/organization-roles/{role_id}/teams",
"GET /orgs/{org}/organization-roles/{role_id}/users",
"GET /orgs/{org}/outside_collaborators", "GET /orgs/{org}/outside_collaborators",
"GET /orgs/{org}/packages", "GET /orgs/{org}/packages",
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions", "GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
@@ -7516,7 +7520,7 @@ __export(dist_src_exports, {
module.exports = __toCommonJS(dist_src_exports); module.exports = __toCommonJS(dist_src_exports);
// pkg/dist-src/version.js // pkg/dist-src/version.js
var VERSION = "10.2.0"; var VERSION = "10.4.1";
// pkg/dist-src/generated/endpoints.js // pkg/dist-src/generated/endpoints.js
var Endpoints = { var Endpoints = {
@@ -7643,6 +7647,9 @@ var Endpoints = {
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions" "GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
], ],
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"], getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
getCustomOidcSubClaimForRepo: [
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
],
getEnvironmentPublicKey: [ getEnvironmentPublicKey: [
"GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key" "GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"
], ],
@@ -7795,6 +7802,9 @@ var Endpoints = {
setCustomLabelsForSelfHostedRunnerForRepo: [ setCustomLabelsForSelfHostedRunnerForRepo: [
"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels" "PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
], ],
setCustomOidcSubClaimForRepo: [
"PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"
],
setGithubActionsDefaultWorkflowPermissionsOrganization: [ setGithubActionsDefaultWorkflowPermissionsOrganization: [
"PUT /orgs/{org}/actions/permissions/workflow" "PUT /orgs/{org}/actions/permissions/workflow"
], ],
@@ -7864,6 +7874,7 @@ var Endpoints = {
listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"], listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
markNotificationsAsRead: ["PUT /notifications"], markNotificationsAsRead: ["PUT /notifications"],
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"], markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
markThreadAsDone: ["DELETE /notifications/threads/{thread_id}"],
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"], markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"], setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
setThreadSubscription: [ setThreadSubscription: [
@@ -8140,10 +8151,10 @@ var Endpoints = {
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"] updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
}, },
copilot: { copilot: {
addCopilotForBusinessSeatsForTeams: [ addCopilotSeatsForTeams: [
"POST /orgs/{org}/copilot/billing/selected_teams" "POST /orgs/{org}/copilot/billing/selected_teams"
], ],
addCopilotForBusinessSeatsForUsers: [ addCopilotSeatsForUsers: [
"POST /orgs/{org}/copilot/billing/selected_users" "POST /orgs/{org}/copilot/billing/selected_users"
], ],
cancelCopilotSeatAssignmentForTeams: [ cancelCopilotSeatAssignmentForTeams: [
@@ -8456,10 +8467,24 @@ var Endpoints = {
} }
] ]
}, },
oidc: {
getOidcCustomSubTemplateForOrg: [
"GET /orgs/{org}/actions/oidc/customization/sub"
],
updateOidcCustomSubTemplateForOrg: [
"PUT /orgs/{org}/actions/oidc/customization/sub"
]
},
orgs: { orgs: {
addSecurityManagerTeam: [ addSecurityManagerTeam: [
"PUT /orgs/{org}/security-managers/teams/{team_slug}" "PUT /orgs/{org}/security-managers/teams/{team_slug}"
], ],
assignTeamToOrgRole: [
"PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
],
assignUserToOrgRole: [
"PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"
],
blockUser: ["PUT /orgs/{org}/blocks/{username}"], blockUser: ["PUT /orgs/{org}/blocks/{username}"],
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"], cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"], checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
@@ -8468,6 +8493,7 @@ var Endpoints = {
convertMemberToOutsideCollaborator: [ convertMemberToOutsideCollaborator: [
"PUT /orgs/{org}/outside_collaborators/{username}" "PUT /orgs/{org}/outside_collaborators/{username}"
], ],
createCustomOrganizationRole: ["POST /orgs/{org}/organization-roles"],
createInvitation: ["POST /orgs/{org}/invitations"], createInvitation: ["POST /orgs/{org}/invitations"],
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"], createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
createOrUpdateCustomPropertiesValuesForRepos: [ createOrUpdateCustomPropertiesValuesForRepos: [
@@ -8478,6 +8504,9 @@ var Endpoints = {
], ],
createWebhook: ["POST /orgs/{org}/hooks"], createWebhook: ["POST /orgs/{org}/hooks"],
delete: ["DELETE /orgs/{org}"], delete: ["DELETE /orgs/{org}"],
deleteCustomOrganizationRole: [
"DELETE /orgs/{org}/organization-roles/{role_id}"
],
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"], deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
enableOrDisableSecurityProductOnAllOrgRepos: [ enableOrDisableSecurityProductOnAllOrgRepos: [
"POST /orgs/{org}/{security_product}/{enablement}" "POST /orgs/{org}/{security_product}/{enablement}"
@@ -8489,6 +8518,7 @@ var Endpoints = {
], ],
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"], getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"], getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"], getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"], getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
getWebhookDelivery: [ getWebhookDelivery: [
@@ -8504,6 +8534,12 @@ var Endpoints = {
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"], listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
listMembers: ["GET /orgs/{org}/members"], listMembers: ["GET /orgs/{org}/members"],
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"], listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
listOrgRoleUsers: ["GET /orgs/{org}/organization-roles/{role_id}/users"],
listOrgRoles: ["GET /orgs/{org}/organization-roles"],
listOrganizationFineGrainedPermissions: [
"GET /orgs/{org}/organization-fine-grained-permissions"
],
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"], listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
listPatGrantRepositories: [ listPatGrantRepositories: [
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories" "GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"
@@ -8518,6 +8554,9 @@ var Endpoints = {
listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"], listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"],
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"], listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
listWebhooks: ["GET /orgs/{org}/hooks"], listWebhooks: ["GET /orgs/{org}/hooks"],
patchCustomOrganizationRole: [
"PATCH /orgs/{org}/organization-roles/{role_id}"
],
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"], pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
redeliverWebhookDelivery: [ redeliverWebhookDelivery: [
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts" "POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
@@ -8542,6 +8581,18 @@ var Endpoints = {
reviewPatGrantRequestsInBulk: [ reviewPatGrantRequestsInBulk: [
"POST /orgs/{org}/personal-access-token-requests" "POST /orgs/{org}/personal-access-token-requests"
], ],
revokeAllOrgRolesTeam: [
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}"
],
revokeAllOrgRolesUser: [
"DELETE /orgs/{org}/organization-roles/users/{username}"
],
revokeOrgRoleTeam: [
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
],
revokeOrgRoleUser: [
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
],
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"], setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
setPublicMembershipForAuthenticatedUser: [ setPublicMembershipForAuthenticatedUser: [
"PUT /orgs/{org}/public_members/{username}" "PUT /orgs/{org}/public_members/{username}"
@@ -8832,6 +8883,9 @@ var Endpoints = {
{}, {},
{ mapToData: "users" } { mapToData: "users" }
], ],
cancelPagesDeployment: [
"POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"
],
checkAutomatedSecurityFixes: [ checkAutomatedSecurityFixes: [
"GET /repos/{owner}/{repo}/automated-security-fixes" "GET /repos/{owner}/{repo}/automated-security-fixes"
], ],
@@ -8867,12 +8921,15 @@ var Endpoints = {
createForAuthenticatedUser: ["POST /user/repos"], createForAuthenticatedUser: ["POST /user/repos"],
createFork: ["POST /repos/{owner}/{repo}/forks"], createFork: ["POST /repos/{owner}/{repo}/forks"],
createInOrg: ["POST /orgs/{org}/repos"], createInOrg: ["POST /orgs/{org}/repos"],
createOrUpdateCustomPropertiesValues: [
"PATCH /repos/{owner}/{repo}/properties/values"
],
createOrUpdateEnvironment: [ createOrUpdateEnvironment: [
"PUT /repos/{owner}/{repo}/environments/{environment_name}" "PUT /repos/{owner}/{repo}/environments/{environment_name}"
], ],
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"], createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
createOrgRuleset: ["POST /orgs/{org}/rulesets"], createOrgRuleset: ["POST /orgs/{org}/rulesets"],
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployment"], createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployments"],
createPagesSite: ["POST /repos/{owner}/{repo}/pages"], createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
createRelease: ["POST /repos/{owner}/{repo}/releases"], createRelease: ["POST /repos/{owner}/{repo}/releases"],
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"], createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
@@ -9025,6 +9082,9 @@ var Endpoints = {
getOrgRulesets: ["GET /orgs/{org}/rulesets"], getOrgRulesets: ["GET /orgs/{org}/rulesets"],
getPages: ["GET /repos/{owner}/{repo}/pages"], getPages: ["GET /repos/{owner}/{repo}/pages"],
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"], getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
getPagesDeployment: [
"GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"
],
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"], getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"], getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
getPullRequestReviewProtection: [ getPullRequestReviewProtection: [
@@ -9235,6 +9295,9 @@ var Endpoints = {
] ]
}, },
securityAdvisories: { securityAdvisories: {
createFork: [
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"
],
createPrivateVulnerabilityReport: [ createPrivateVulnerabilityReport: [
"POST /repos/{owner}/{repo}/security-advisories/reports" "POST /repos/{owner}/{repo}/security-advisories/reports"
], ],
@@ -9726,7 +9789,7 @@ var import_endpoint = __nccwpck_require__(9440);
var import_universal_user_agent = __nccwpck_require__(5030); var import_universal_user_agent = __nccwpck_require__(5030);
// pkg/dist-src/version.js // pkg/dist-src/version.js
var VERSION = "8.1.6"; var VERSION = "8.2.0";
// pkg/dist-src/is-plain-object.js // pkg/dist-src/is-plain-object.js
function isPlainObject(value) { function isPlainObject(value) {
@@ -9870,11 +9933,17 @@ async function getResponseData(response) {
function toErrorMessage(data) { function toErrorMessage(data) {
if (typeof data === "string") if (typeof data === "string")
return data; return data;
let suffix;
if ("documentation_url" in data) {
suffix = ` - ${data.documentation_url}`;
} else {
suffix = "";
}
if ("message" in data) { if ("message" in data) {
if (Array.isArray(data.errors)) { if (Array.isArray(data.errors)) {
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}`; return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
} }
return data.message; return `${data.message}${suffix}`;
} }
return `Unknown error: ${JSON.stringify(data)}`; return `Unknown error: ${JSON.stringify(data)}`;
} }
@@ -43975,6 +44044,9 @@ function httpRedirectFetch (fetchParams, response) {
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name // https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
request.headersList.delete('authorization') request.headersList.delete('authorization')
// https://fetch.spec.whatwg.org/#authentication-entries
request.headersList.delete('proxy-authorization', true)
// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement. // "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
request.headersList.delete('cookie') request.headersList.delete('cookie')
request.headersList.delete('host') request.headersList.delete('host')
@@ -55181,7 +55253,7 @@ Dicer.prototype._write = function (data, encoding, cb) {
if (this._headerFirst && this._isPreamble) { if (this._headerFirst && this._isPreamble) {
if (!this._part) { if (!this._part) {
this._part = new PartStream(this._partOpts) this._part = new PartStream(this._partOpts)
if (this._events.preamble) { this.emit('preamble', this._part) } else { this._ignore() } if (this.listenerCount('preamble') !== 0) { this.emit('preamble', this._part) } else { this._ignore() }
} }
const r = this._hparser.push(data) const r = this._hparser.push(data)
if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() } if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() }
@@ -55238,7 +55310,7 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
} }
} }
if (this._dashes === 2) { if (this._dashes === 2) {
if ((start + i) < end && this._events.trailer) { this.emit('trailer', data.slice(start + i, end)) } if ((start + i) < end && this.listenerCount('trailer') !== 0) { this.emit('trailer', data.slice(start + i, end)) }
this.reset() this.reset()
this._finished = true this._finished = true
// no more parts will be added // no more parts will be added
@@ -55256,7 +55328,13 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
this._part._read = function (n) { this._part._read = function (n) {
self._unpause() self._unpause()
} }
if (this._isPreamble && this._events.preamble) { this.emit('preamble', this._part) } else if (this._isPreamble !== true && this._events.part) { this.emit('part', this._part) } else { this._ignore() } if (this._isPreamble && this.listenerCount('preamble') !== 0) {
this.emit('preamble', this._part)
} else if (this._isPreamble !== true && this.listenerCount('part') !== 0) {
this.emit('part', this._part)
} else {
this._ignore()
}
if (!this._isPreamble) { this._inHeader = true } if (!this._isPreamble) { this._inHeader = true }
} }
if (data && start < end && !this._ignoreData) { if (data && start < end && !this._ignoreData) {
@@ -55939,7 +56017,7 @@ function Multipart (boy, cfg) {
++nfiles ++nfiles
if (!boy._events.file) { if (boy.listenerCount('file') === 0) {
self.parser._ignore() self.parser._ignore()
return return
} }
@@ -56468,7 +56546,7 @@ const decoders = {
if (textDecoders.has(this.toString())) { if (textDecoders.has(this.toString())) {
try { try {
return textDecoders.get(this).decode(data) return textDecoders.get(this).decode(data)
} catch (e) { } } catch {}
} }
return typeof data === 'string' return typeof data === 'string'
? data ? data
@@ -58109,19 +58187,19 @@ function foldNewline(source, offset) {
return { fold, offset }; return { fold, offset };
} }
const escapeCodes = { const escapeCodes = {
'0': '\0', '0': '\0', // null character
a: '\x07', a: '\x07', // bell character
b: '\b', b: '\b', // backspace
e: '\x1b', e: '\x1b', // escape character
f: '\f', f: '\f', // form feed
n: '\n', n: '\n', // line feed
r: '\r', r: '\r', // carriage return
t: '\t', t: '\t', // horizontal tab
v: '\v', v: '\v', // vertical tab
N: '\u0085', N: '\u0085', // Unicode next line
_: '\u00a0', _: '\u00a0', // Unicode non-breaking space
L: '\u2028', L: '\u2028', // Unicode line separator
P: '\u2029', P: '\u2029', // Unicode paragraph separator
' ': ' ', ' ': ' ',
'"': '"', '"': '"',
'/': '/', '/': '/',
@@ -62063,7 +62141,10 @@ class Parser {
return; return;
} }
if (this.indent >= map.indent) { if (this.indent >= map.indent) {
const atNextItem = !this.onKeyLine && this.indent === map.indent && it.sep; const atNextItem = !this.onKeyLine &&
this.indent === map.indent &&
it.sep &&
this.type !== 'seq-item-ind';
// For empty nodes, assign newline-separated not indented empty tokens to following node // For empty nodes, assign newline-separated not indented empty tokens to following node
let start = []; let start = [];
if (atNextItem && it.sep && !it.value) { if (atNextItem && it.sep && !it.value) {
@@ -63108,7 +63189,7 @@ var Scalar = __nccwpck_require__(9338);
var stringifyString = __nccwpck_require__(6226); var stringifyString = __nccwpck_require__(6226);
const binary = { const binary = {
identify: value => value instanceof Uint8Array, identify: value => value instanceof Uint8Array, // Buffer inherits from Uint8Array
default: false, default: false,
tag: 'tag:yaml.org,2002:binary', tag: 'tag:yaml.org,2002:binary',
/** /**
@@ -63828,7 +63909,7 @@ function foldFlowLines(text, indent, mode = 'flow', { indentAtStart, lineWidth =
let escStart = -1; let escStart = -1;
let escEnd = -1; let escEnd = -1;
if (mode === FOLD_BLOCK) { if (mode === FOLD_BLOCK) {
i = consumeMoreIndentedLines(text, i); i = consumeMoreIndentedLines(text, i, indent.length);
if (i !== -1) if (i !== -1)
end = i + endStep; end = i + endStep;
} }
@@ -63852,8 +63933,8 @@ function foldFlowLines(text, indent, mode = 'flow', { indentAtStart, lineWidth =
} }
if (ch === '\n') { if (ch === '\n') {
if (mode === FOLD_BLOCK) if (mode === FOLD_BLOCK)
i = consumeMoreIndentedLines(text, i); i = consumeMoreIndentedLines(text, i, indent.length);
end = i + endStep; end = i + indent.length + endStep;
split = undefined; split = undefined;
} }
else { else {
@@ -63921,15 +64002,24 @@ function foldFlowLines(text, indent, mode = 'flow', { indentAtStart, lineWidth =
* Presumes `i + 1` is at the start of a line * Presumes `i + 1` is at the start of a line
* @returns index of last newline in more-indented block * @returns index of last newline in more-indented block
*/ */
function consumeMoreIndentedLines(text, i) { function consumeMoreIndentedLines(text, i, indent) {
let ch = text[i + 1]; let end = i;
let start = i + 1;
let ch = text[start];
while (ch === ' ' || ch === '\t') { while (ch === ' ' || ch === '\t') {
do { if (i < start + indent) {
ch = text[(i += 1)]; ch = text[++i];
} while (ch && ch !== '\n'); }
ch = text[i + 1]; else {
do {
ch = text[++i];
} while (ch && ch !== '\n');
end = i;
start = i + 1;
ch = text[start];
}
} }
return i; return end;
} }
exports.FOLD_BLOCK = FOLD_BLOCK; exports.FOLD_BLOCK = FOLD_BLOCK;
@@ -64081,7 +64171,6 @@ exports.stringify = stringify;
"use strict"; "use strict";
var Collection = __nccwpck_require__(3466);
var identity = __nccwpck_require__(5589); var identity = __nccwpck_require__(5589);
var stringify = __nccwpck_require__(8409); var stringify = __nccwpck_require__(8409);
var stringifyComment = __nccwpck_require__(5182); var stringifyComment = __nccwpck_require__(5182);
@@ -64142,7 +64231,7 @@ function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, fl
onChompKeep(); onChompKeep();
return str; return str;
} }
function stringifyFlowCollection({ comment, items }, ctx, { flowChars, itemIndent, onComment }) { function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx; const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx;
itemIndent += indentStep; itemIndent += indentStep;
const itemCtx = Object.assign({}, ctx, { const itemCtx = Object.assign({}, ctx, {
@@ -64195,32 +64284,25 @@ function stringifyFlowCollection({ comment, items }, ctx, { flowChars, itemInden
lines.push(str); lines.push(str);
linesAtValue = lines.length; linesAtValue = lines.length;
} }
let str;
const { start, end } = flowChars; const { start, end } = flowChars;
if (lines.length === 0) { if (lines.length === 0) {
str = start + end; return start + end;
} }
else { else {
if (!reqNewline) { if (!reqNewline) {
const len = lines.reduce((sum, line) => sum + line.length + 2, 2); const len = lines.reduce((sum, line) => sum + line.length + 2, 2);
reqNewline = len > Collection.Collection.maxFlowStringSingleLineLength; reqNewline = ctx.options.lineWidth > 0 && len > ctx.options.lineWidth;
} }
if (reqNewline) { if (reqNewline) {
str = start; let str = start;
for (const line of lines) for (const line of lines)
str += line ? `\n${indentStep}${indent}${line}` : '\n'; str += line ? `\n${indentStep}${indent}${line}` : '\n';
str += `\n${indent}${end}`; return `${str}\n${indent}${end}`;
} }
else { else {
str = `${start}${fcPadding}${lines.join(' ')}${fcPadding}${end}`; return `${start}${fcPadding}${lines.join(' ')}${fcPadding}${end}`;
} }
} }
if (comment) {
str += stringifyComment.lineComment(str, indent, commentString(comment));
if (onComment)
onComment();
}
return str;
} }
function addCommentBefore({ indent, options: { commentString } }, lines, comment, chompKeep) { function addCommentBefore({ indent, options: { commentString } }, lines, comment, chompKeep) {
if (comment && chompKeep) if (comment && chompKeep)

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{ {
"name": "@tj-actions/changed-files", "name": "@tj-actions/changed-files",
"version": "42.0.0", "version": "42.0.5",
"description": "Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.", "description": "Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.",
"main": "lib/main.js", "main": "lib/main.js",
"publishConfig": { "publishConfig": {
@@ -46,8 +46,8 @@
"@types/micromatch": "^4.0.2", "@types/micromatch": "^4.0.2",
"@types/node": "^20.3.2", "@types/node": "^20.3.2",
"@types/uuid": "^9.0.2", "@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^6.0.0", "@typescript-eslint/parser": "^7.0.0",
"@vercel/ncc": "^0.38.0", "@vercel/ncc": "^0.38.0",
"eslint": "^8.43.0", "eslint": "^8.43.0",
"eslint-plugin-github": "^4.8.0", "eslint-plugin-github": "^4.8.0",

View File

@@ -429,7 +429,7 @@ export const getSHAForPullRequestEvent = async (
if ( if (
!github.context.payload.pull_request?.base?.ref || !github.context.payload.pull_request?.base?.ref ||
github.context.payload.head?.repo?.fork === 'true' github.context.payload.pull_request?.head?.repo?.fork === true
) { ) {
diff = '..' diff = '..'
} }

View File

@@ -5,6 +5,7 @@ export type Env = {
GITHUB_REF: string GITHUB_REF: string
GITHUB_WORKSPACE: string GITHUB_WORKSPACE: string
} }
export const getEnv = async (): Promise<Env> => { export const getEnv = async (): Promise<Env> => {
core.debug(`Env: ${JSON.stringify(process.env, null, 2)}`) core.debug(`Env: ${JSON.stringify(process.env, null, 2)}`)

View File

@@ -264,9 +264,8 @@ export async function run(): Promise<void> {
}) })
} else { } else {
if (!hasGitDirectory) { if (!hasGitDirectory) {
core.info(`Running on a ${github.context.eventName} event...`)
throw new Error( throw new Error(
`Can't find local .git in ${workingDirectory} directory. Please run actions/checkout before this action (Make sure the 'path' input is correct). If you intend to use Github's REST API note that only pull_request* events are supported.` `Unable to locate the git repository in the given path: ${workingDirectory}.\n Please run actions/checkout before this action (Make sure the 'path' input is correct).\n If you intend to use Github's REST API note that only pull_request* events are supported. Current event is "${github.context.eventName}".`
) )
} }

View File

@@ -680,6 +680,12 @@ export const isInsideWorkTree = async ({
} }
) )
if (stdout.trim() !== 'true') {
core.debug(
`The current working directory is not inside a git repository: ${cwd}`
)
}
return stdout.trim() === 'true' return stdout.trim() === 'true'
} }
@@ -902,7 +908,7 @@ export const canDiffCommits = async ({
} else { } else {
const {exitCode, stderr} = await exec.getExecOutput( const {exitCode, stderr} = await exec.getExecOutput(
'git', 'git',
['diff', '--quiet', sha1, sha2], ['diff', '--no-patch', sha1, sha2],
{ {
cwd, cwd,
ignoreReturnCode: true, ignoreReturnCode: true,

947
yarn.lock

File diff suppressed because it is too large Load Diff