Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Mar 11, 2021
1 parent 850e5ac commit 34d10b1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,28 @@ jobs:
if: steps.changed_files.outputs.files_changed == 'true'
run: |
echo "Do something when files have changed."
```
#### Act based on changes to a single file.
```yaml
...
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v5.5
id: changed_files
with:
files: |
new.txt
test_directory
- name: Perform action when test_directory changes
if: contains(steps.changed_files.outputs.changed_files, 'test_directory')
run: |
echo "test_directory has changed."
```
## Inputs
| Input | type | required | default | description |
Expand Down

0 comments on commit 34d10b1

Please sign in to comment.