Update README.md

This commit is contained in:
Tonye Jack 2023-04-07 15:39:00 -06:00 committed by GitHub
parent 87380821bf
commit e45cb98580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)