Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Mar 6, 2023
1 parent 33b483b commit 8989158
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Verify that certain files or directories did or did not change during the workfl
# Outputs: "Changed files: new.txt test_directory/new.txt"
```

#### Using the [`contains`](https://docs.github.com/en/actions/learn-github-actions/expressions#contains) function.
### Using the [`contains`](https://docs.github.com/en/actions/learn-github-actions/expressions#contains) function.

```yaml
...
Expand All @@ -90,6 +90,19 @@ Verify that certain files or directories did or did not change during the workfl
echo "test_directory has changed."
```
### Get all unstaged (tracked/untracked) files
```yaml
...
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v13
id: verify-changed-files

- name: List all changed files tracked and untracked files
run: |
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}"
```
If you feel generous and want to show some extra appreciation:
Support this project with a :star:
Expand Down

0 comments on commit 8989158

Please sign in to comment.