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 5, 2021
1 parent ee1e50f commit b13dd56
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions README.md
Expand Up @@ -7,8 +7,47 @@ Get modified files
...
steps:
- uses: actions/checkout@v2
- name: Get modified files
uses: tj-actions/changed-files@v1
- name: Get modified files with defaults
id: changed-files
uses: ./
- name: Show output
run: |
echo "${{ toJSON(steps.changed-files.outputs) }}"
# Outputs:
# {
# added_files: ,
# copied_files: ,
# deleted_files: ,
# modified_files: .github/workflows/test.yml HISTORY.md action.yml ,
# renamed_files: ,
# changed_files: ,
# unmerged_files: ,
# unknown_files: ,
# all_changed_files:
# }

- name: Get modified files with comma separator
id: changed-files-comma
uses: ./
with:
separator: ","
- name: Show output
run: |
echo "${{ toJSON(steps.changed-files-comma.outputs) }}"
# Outputs:
# {
# added_files: ,
# copied_files: ,
# deleted_files: ,
# modified_files: .github/workflows/test.yml,HISTORY.md,action.yml,,
# renamed_files: ,
# changed_files: ,
# unmerged_files: ,
# unknown_files: ,
# all_changed_files:
# }
```


Expand Down

0 comments on commit b13dd56

Please sign in to comment.