diff --git a/README.md b/README.md index 393923b874c..9c03f53af25 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,19 @@ jobs: for file in ${{ steps.changed-files.outputs.all_changed_files }}; do echo "$file was changed" done + + - name: Get changed files in the docs folder + id: changed-files-specific + uses: tj-actions/changed-files@v29.0.4 + with: + files: | + docs/** + + - name: Run step if any file(s) in the docs folder change + if: steps.changed-files-specific.outputs.any_changed == 'true' + run: | + echo "One or more files in the docs folder has changed." + echo "List all the files that have changed: ${{ steps.changed-files.outputs.all_changed_files }}" ``` If you feel generous and want to show some extra appreciation: