mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-29 13:34:51 +00:00
Update README.md
This commit is contained in:
parent
87380821bf
commit
e45cb98580
1 changed files with 7 additions and 24 deletions
31
README.md
31
README.md
|
@ -756,36 +756,19 @@ And many more...
|
|||
|
||||
With the switch from using grep's Extended regex to match files to the natively supported workflow glob pattern matching syntax introduced in [v13](https://github.com/tj-actions/changed-files/releases/tag/v13) you'll need to modify patterns used to match `files`.
|
||||
|
||||
**BEFORE**
|
||||
|
||||
```yml
|
||||
```diff
|
||||
...
|
||||
|
||||
- name: Get specific changed files
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@v12.2
|
||||
with:
|
||||
files: |
|
||||
\.sh$
|
||||
.(sql|py)$
|
||||
^(mynewfile|custom)
|
||||
```
|
||||
|
||||
**AFTER**
|
||||
|
||||
```yml
|
||||
...
|
||||
|
||||
- name: Get specific changed files
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@v24
|
||||
with:
|
||||
files: |
|
||||
*.sh
|
||||
*.sql
|
||||
*.py
|
||||
mynewfile
|
||||
custom/**
|
||||
- \.sh$
|
||||
- .(sql|py)$
|
||||
- ^(dir1|dir2)
|
||||
+ *.{sh,sql,py}
|
||||
+ dir1
|
||||
+ dir2
|
||||
```
|
||||
|
||||
* Free software: [MIT license](LICENSE)
|
||||
|
|
Loading…
Reference in a new issue