From 7dfd007898d30838f146a90dff7f07306e93b17c Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 22 Mar 2022 02:02:50 -0400 Subject: [PATCH] Update README.md --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index ae9d4c60..480eb52e 100644 --- a/README.md +++ b/README.md @@ -300,6 +300,40 @@ This project follows a `v(major).(patch)` versioning scheme with the exception o > * Users referencing the legacy `v1.x.x` -> `v5.0.0` semantic versions, are required to switch over to `v10.x` -> `v15.x` respectively as new releases would no longer be deployed using the old versioning scheme. > * A breaking change was introduced in `v1.1.4` and `v13.x` which has been fixed. +## Migration guide +With the switch from using grep's Extended regex to match files to the natively supported workflow glob pattern matching snytax 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@v18.4 + with: + files: | + *.sh + *.sql + *.py + mynewfile + custom/** +``` + + ## Credits This package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter).