Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damoun/action-find-files
Find files
https://github.com/damoun/action-find-files
Last synced: 4 days 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 (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-11T07:48:38.000Z (5 months ago)
- Last Synced: 2024-06-11T09:08:49.579Z (5 months ago)
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- 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 }}
```