Update README.md
This commit is contained in:
parent
c3a1d0574b
commit
01588a88f3
37
README.md
37
README.md
@ -592,6 +592,43 @@ See [inputs](#inputs) for more information.
|
|||||||
> However, this action will handle spaces in file names, with a recommendation of using a separator to prevent hidden issues.
|
> However, this action will handle spaces in file names, with a recommendation of using a separator to prevent hidden issues.
|
||||||
> 
|
> 
|
||||||
|
|
||||||
|
## Migration guide
|
||||||
|
|
||||||
|
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
|
||||||
|
...
|
||||||
|
|
||||||
|
- 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/**
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
This package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter).
|
This package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user