From e45cb985804abcdc570d9a0dd9a4ac44d9e7abb1 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 7 Apr 2023 15:39:00 -0600 Subject: [PATCH] Update README.md --- README.md | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 0e7d101268f..b75ac3102d1 100644 --- a/README.md +++ b/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)