https://github.com/damoun/action-find-files
Find files
https://github.com/damoun/action-find-files
Last synced: 5 months ago
JSON representation
Find files
- Host: GitHub
- URL: https://github.com/damoun/action-find-files
- Owner: damoun
- License: mit
- Created: 2024-06-08T20:06:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-11T07:48:38.000Z (about 1 year ago)
- Last Synced: 2025-02-23T13:37:24.605Z (5 months ago)
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# action-find-files
A Github Action to find files.
## Usage
```yaml
- uses: damoun/action-find-files@v2
with:
# The regex pattern to search filename for.
pattern: '.*ya?ml$'
# The path to search files in.
path: '.'
```## Exemple
```yaml
name: validateon: [push, pull_request]
jobs:
find_yaml_files:
name: Find yaml files
outputs:
files: ${{ steps.find-files.outputs.files }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: damoun/action-find-files@v2
id: find-files
with:
pattern: '.*ya?ml$'echo:
name: Echo files
needs: find_yaml_files
strategy:
matrix:
file: ${{ fromJson(needs.find_yaml_files.outputs.files) }}
runs-on: ubuntu-latest
steps:
- run: echo ${{ matrix.file }}
```