This action checks the files changed in a pull request or push event and matches them against a list of required paths.
Required The GitHub token used to fetch the pull request details. Default is secrets.GITHUB_TOKEN
.
A comma-separated list of paths that will be checked against the changed files. The paths can use the glob format (e.g., **
to match any file in any directory). This input is optional.
A space-separated list of the files that were changed in the pull request or push event.
A boolean value indicating whether all the required paths were matched by the changed files. If there are no required paths, this output will not be set.
uses: @drassil/gh-actions-collection/changed-files@master
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
required_paths: "**"
In this example, the action will check if any file in any directory was changed.