From 41ed98fdd58923475053a7ae88af316ae5409823 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 25 Jan 2023 08:14:32 -0700 Subject: [PATCH] chore: update docs (#964) --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 57352f03..654cfc8d 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,21 @@ jobs: run: | echo "One or more files in the docs folder has changed." echo "List all the files that have changed: ${{ steps.changed-files-specific.outputs.all_changed_files }}" + + # Example 3 + - name: Get changed js files excluding the docs folder + id: changed-files-excluded + uses: tj-actions/changed-files@v35 + with: + files: | + **/*.js + files_ignore: docs/** # Alternatively using: `docs` + + - name: Run step if any other js file(s) change + if: steps.changed-files-excluded.outputs.any_changed == 'true' + run: | + echo "One or more js files not in the doc folder has changed." + echo "List all the files that have changed: ${{ steps.changed-files-excluded.outputs.all_changed_files }}" ``` If you feel generous and want to show some extra appreciation: