You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Glob match
v7.8
Search for files matching glob patterns.
...
steps:
- uses: actions/checkout@v2
- name: Glob match
uses: tj-actions/[email protected]
id: glob
with:
files: |
*.md
**.yaml
**.yml
!action.yml
**/rebase.yml
- name: Show all matching files
run: |
echo "${{ steps.glob.outputs.paths }}"
## Returns: .github/workflows/rebase.yml .github/workflows/sync-release-version.yml .github/workflows/test.yml...
INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
---|---|---|---|---|
base-sha | string | false | Specify a base commit SHA used for comparing changes, when include-deleted-files is set to true |
|
excluded-files | string | false | Excluded file patterns (optionally include! before the file patternor it would be prepended) |
|
excluded-files-from-source-file | string | false | Source file to populate theexcluded-files input |
|
excluded-files-from-source-file-separator | string | false | "\n" |
Separator used to split theexcluded-files-from-source-file input |
excluded-files-separator | string | false | "\n" |
Separator used to split theexcluded-files input |
files | string | true | File patterns | |
files-from-source-file | string | false | Source file to populate thefiles input |
|
files-from-source-file-separator | string | false | "\n" |
Separator used to split thefiles-from-source-file input |
files-separator | string | false | "\n" |
Separator used to split thefiles input |
follow-symbolic-links | string | true | "true" |
Indicates whether to follow symbolic links |
include-deleted-files | string | false | "false" |
Include all matching deleted files |
separator | string | true | " " |
Separator used for the paths output. |
sha | string | true | "${{ github.sha }}" |
Specify a current commit SHA used for comparing changes, when include-deleted-files is set to true |
strip-top-level-dir | string | false | "true" |
Strip the $GITHUB_WORKSPACE from thepaths output |
working-directory | string | false | "${{ github.workspace }}" |
Specify a relative path under $GITHUB_WORKSPACE to locate the repository |
OUTPUT | TYPE | DESCRIPTION |
---|---|---|
paths | string | List of filtered paths using the specified patterns and separator |
paths-output-file | string | List of filtered paths using the specified patterns and separator stored in a tempfile |
- Free software: MIT license
If you feel generous and want to show some extra appreciation:
This package was created with Cookiecutter using cookiecutter-action
Report bugs at https://github.com/tj-actions/glob/issues.
If you are reporting a bug, please include:
- Your operating system name and version.
- Any details about your workflow that might be helpful in troubleshooting.
- Detailed steps to reproduce the bug.