Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from 2 to 3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dorny/paths-filter/releases">dorny/paths-filter's releases</a>.</em></p> <blockquote> <h2>v3.0.0</h2> <h2>What's Changed</h2> <ul> <li>Update README.md: added real world usage example by <a href="https://github.com/iamtodor"><code>@iamtodor</code></a> in <a href="https://redirect.github.com/dorny/paths-filter/pull/178">dorny/paths-filter#178</a></li> <li>Update Node.js to version 20 by <a href="https://github.com/danielhjacobs"><code>@danielhjacobs</code></a> in <a href="https://redirect.github.com/dorny/paths-filter/pull/206">dorny/paths-filter#206</a></li> <li>Update to nodejs 20 by <a href="https://github.com/dorny"><code>@dorny</code></a> in <a href="https://redirect.github.com/dorny/paths-filter/pull/210">dorny/paths-filter#210</a></li> <li>chore(deps): bump checkout action to v4 and use setup-node to setup node and cache npm deps by <a href="https://github.com/chenrui333"><code>@chenrui333</code></a> in <a href="https://redirect.github.com/dorny/paths-filter/pull/211">dorny/paths-filter#211</a></li> <li>Update all dependencies by <a href="https://github.com/dorny"><code>@dorny</code></a> in <a href="https://redirect.github.com/dorny/paths-filter/pull/215">dorny/paths-filter#215</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/iamtodor"><code>@iamtodor</code></a> made their first contribution in <a href="https://redirect.github.com/dorny/paths-filter/pull/178">dorny/paths-filter#178</a></li> <li><a href="https://github.com/danielhjacobs"><code>@danielhjacobs</code></a> made their first contribution in <a href="https://redirect.github.com/dorny/paths-filter/pull/206">dorny/paths-filter#206</a></li> <li><a href="https://github.com/chenrui333"><code>@chenrui333</code></a> made their first contribution in <a href="https://redirect.github.com/dorny/paths-filter/pull/211">dorny/paths-filter#211</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/dorny/paths-filter/compare/v2.11.1...v3.0.0">https://github.com/dorny/paths-filter/compare/v2.11.1...v3.0.0</a></p> <h2>v2.11.1</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/167">Update <code>@actions/core</code> to v1.10.0 - Fixes warning about deprecated set-output</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/168">Document need for pull-requests: read permission</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/164">Updating to actions/checkout@v3</a></li> </ul> <h2>v2.11.0</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/157">Set list-files input parameter as not required</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/161">Update Node.js</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/162">Fix incorrect handling of Unicode characters in exec()</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/163">Use Octokit pagination</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/160">Updates real world links</a></li> </ul> <h2>v2.10.2</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/91">Fix getLocalRef() returns wrong ref</a></li> </ul> <h2>v2.10.1</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/85">Improve robustness of change detection</a></li> </ul> <h2>v2.10.0</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/82">Add ref input parameter</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/83">Fix change detection in PR when <code>pullRequest.changed_files</code> is incorrect</a></li> </ul> <h2>v2.9.3</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/78">Fix change detection when base is a tag</a></li> </ul> <h2>v2.9.2</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/75">Fix fetching git history</a></li> </ul> <h2>v2.9.1</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/74">Fix fetching git history + fallback to unshallow repo</a></li> </ul> <h2>v2.9.0</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/68">Add list-files: csv format</a></li> </ul> <h2>v2.8.0</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md">dorny/paths-filter's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2>v3.0.0</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/210">Update to Node.js 20 </a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/215">Update all dependencies</a></li> </ul> <h2>v2.11.1</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/167">Update <code>@actions/core</code> to v1.10.0 - Fixes warning about deprecated set-output</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/168">Document need for pull-requests: read permission</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/164">Updating to actions/checkout@v3</a></li> </ul> <h2>v2.11.0</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/157">Set list-files input parameter as not required</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/161">Update Node.js</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/162">Fix incorrect handling of Unicode characters in exec()</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/163">Use Octokit pagination</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/160">Updates real world links</a></li> </ul> <h2>v2.10.2</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/91">Fix getLocalRef() returns wrong ref</a></li> </ul> <h2>v2.10.1</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/85">Improve robustness of change detection</a></li> </ul> <h2>v2.10.0</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/82">Add ref input parameter</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/83">Fix change detection in PR when pullRequest.changed_files is incorrect</a></li> </ul> <h2>v2.9.3</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/78">Fix change detection when base is a tag</a></li> </ul> <h2>v2.9.2</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/75">Fix fetching git history</a></li> </ul> <h2>v2.9.1</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/74">Fix fetching git history + fallback to unshallow repo</a></li> </ul> <h2>v2.9.0</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/68">Add list-files: csv format</a></li> </ul> <h2>v2.8.0</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/65">Add count output variable</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/61">Fix log grouping of changes</a></li> </ul> <h2>v2.7.0</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/59">Add "changes" output variable to support matrix job configuration</a></li> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/58">Improved listing of matching files with <code>list-files: shell</code> and <code>list-files: escape</code> options</a></li> </ul> <h2>v2.6.0</h2> <ul> <li><a href="https://redirect.github.com/dorny/paths-filter/pull/53">Support local changes</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="0bc4621a31"><code>0bc4621</code></a> Bump major version to v3</li> <li><a href="7267a8516b"><code>7267a85</code></a> Update CHANGELOG for v2.12.0</li> <li><a href="e36f1124bf"><code>e36f112</code></a> Merge pull request <a href="https://redirect.github.com/dorny/paths-filter/issues/215">#215</a> from dorny/update-dependencies</li> <li><a href="2f74457227"><code>2f74457</code></a> Update all dependencies</li> <li><a href="67617953b4"><code>6761795</code></a> Update examples in README to use checkout@v4</li> <li><a href="a35d8d6a33"><code>a35d8d6</code></a> Merge pull request <a href="https://redirect.github.com/dorny/paths-filter/issues/211">#211</a> from chenrui333/node-20</li> <li><a href="b5a5203f8b"><code>b5a5203</code></a> chore(deps): bump checkout action to v4 and use setup-node to setup node and ...</li> <li><a href="3c49e64ca2"><code>3c49e64</code></a> Merge pull request <a href="https://redirect.github.com/dorny/paths-filter/issues/210">#210</a> from dorny/use-nodejs-20</li> <li><a href="8ec7be4734"><code>8ec7be4</code></a> Update to nodejs 20</li> <li><a href="100a1198b2"><code>100a119</code></a> Revert back to node16</li> <li>Additional commits viewable in <a href="https://github.com/dorny/paths-filter/compare/v2...v3">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
64 lines
2.4 KiB
YAML
64 lines
2.4 KiB
YAML
name: Filechange Checker
|
|
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
srcfileschanged:
|
|
description: "'true' if src/** or .github/workflows/** files have changed in the branch"
|
|
value: ${{ jobs.file-change-check.outputs.srcfileschanged }}
|
|
websitefileschanged:
|
|
description: "'true' if websites/** or .github/workflows/** files have changed in the branch"
|
|
value: ${{ jobs.file-change-check.outputs.websitefileschanged }}
|
|
actionsfileschanged:
|
|
description: "'true' if .github/actions/** or .github/workflows/** files have changed in the branch"
|
|
value: ${{ jobs.file-change-check.outputs.actionsfileschanged }}
|
|
|
|
jobs:
|
|
file-change-check:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
outputs:
|
|
srcfileschanged: ${{ steps.srcchecker.outputs.srcfileschanged }}
|
|
websitefileschanged: ${{ steps.websitechecker.outputs.websitefileschanged }}
|
|
actionsfileschanged: ${{ steps.actionschecker.outputs.actionsfileschanged }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
# only run CI tests if the src folder or workflow actions have changed
|
|
- name: Check for file changes in src/ or .github/workflows/
|
|
uses: dorny/paths-filter@v3
|
|
id: dornycheck
|
|
with:
|
|
list-files: json
|
|
filters: |
|
|
src:
|
|
- 'src/**'
|
|
website:
|
|
- 'website/**'
|
|
actions:
|
|
- '.github/workflows/**'
|
|
- '.github/actions/**'
|
|
|
|
- name: Check dorny for changes in src filepaths
|
|
id: srcchecker
|
|
if: steps.dornycheck.outputs.src == 'true' || steps.dornycheck.outputs.actions == 'true'
|
|
run: |
|
|
echo "src or workflow file changes occurred"
|
|
echo srcfileschanged=true >> $GITHUB_OUTPUT
|
|
|
|
- name: Check dorny for changes in website related filepaths
|
|
id: websitechecker
|
|
if: steps.dornycheck.outputs.src == 'true' || steps.dornycheck.outputs.website == 'true' || steps.dornycheck.outputs.actions == 'true'
|
|
run: |
|
|
echo "website or workflow file changes occurred"
|
|
echo websitefileschanged=true >> $GITHUB_OUTPUT
|
|
|
|
- name: Check dorny for changes in actions filepaths
|
|
id: actionschecker
|
|
if: steps.dornycheck.outputs.actions == 'true'
|
|
run: |
|
|
echo "actions file changes occurred"
|
|
echo actionsfileschanged=true >> $GITHUB_OUTPUT
|