Skip to content

Commit

Permalink
Make example consistent and out of the box usable (#931)
Browse files Browse the repository at this point in the history
Co-authored-by: Tonye Jack <jtonye@ymail.com>
  • Loading branch information
cfernhout and jackton1 committed Jan 5, 2023
1 parent 4f9f822 commit 9a6dabf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -289,7 +289,7 @@ See [inputs](#inputs) for more information.
```yaml
...
- name: Get changed files
id: changed-files
id: changed-files-specific
uses: tj-actions/changed-files@v35
with:
files: |
Expand All @@ -311,16 +311,16 @@ See [inputs](#inputs) for more information.
echo "Only files listed above have changed."
- name: Run step if any of the listed files above is deleted
if: steps.changed-files.outputs.any_deleted == 'true'
if: steps.changed-files-specific.outputs.any_deleted == 'true'
run: |
for file in ${{ steps.changed-files.outputs.deleted_files }}; do
for file in ${{ steps.changed-files-specific.outputs.deleted_files }}; do
echo "$file was deleted"
done
- name: Run step if all listed files above have been deleted
if: steps.changed-files.outputs.only_deleted == 'true'
if: steps.changed-files-specific.outputs.only_deleted == 'true'
run: |
for file in ${{ steps.changed-files.outputs.deleted_files }}; do
for file in ${{ steps.changed-files-specific.outputs.deleted_files }}; do
echo "$file was deleted"
done
...
Expand Down

0 comments on commit 9a6dabf

Please sign in to comment.