Update README.md
This commit is contained in:
parent
87380821bf
commit
e45cb98580
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`.
|
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**
|
```diff
|
||||||
|
|
||||||
```yml
|
|
||||||
...
|
...
|
||||||
|
|
||||||
- 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
|
- name: Get specific changed files
|
||||||
id: changed-files-specific
|
id: changed-files-specific
|
||||||
uses: tj-actions/changed-files@v24
|
uses: tj-actions/changed-files@v24
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
*.sh
|
- \.sh$
|
||||||
*.sql
|
- .(sql|py)$
|
||||||
*.py
|
- ^(dir1|dir2)
|
||||||
mynewfile
|
+ *.{sh,sql,py}
|
||||||
custom/**
|
+ dir1
|
||||||
|
+ dir2
|
||||||
```
|
```
|
||||||
|
|
||||||
* Free software: [MIT license](LICENSE)
|
* Free software: [MIT license](LICENSE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user