3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-01-17 09:17:46 +00:00

Update README.md

This commit is contained in:
Tonye Jack 2022-09-12 14:47:54 -06:00 committed by GitHub
parent ba0dd99ea1
commit ad33a235d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 a specific directory
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: