3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2024-12-16 09:27:57 +00:00

correct bash loop in examples (#1908)

Co-authored-by: Tonye Jack <jtonye@ymail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
Daniel Hill 2024-02-02 13:21:28 +00:00 committed by GitHub
parent e57fb1b8eb
commit 54c56103aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,7 +129,7 @@ jobs:
env: env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: | run: |
for file in "$ALL_CHANGED_FILES"; do for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed" echo "$file was changed"
done done
@ -147,7 +147,7 @@ jobs:
env: env:
ALL_CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }} ALL_CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }}
run: | run: |
for file in "$ALL_CHANGED_FILES"; do for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed" echo "$file was changed"
done done
@ -235,7 +235,7 @@ jobs:
env: env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: | run: |
for file in "$ALL_CHANGED_FILES"; do for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed" echo "$file was changed"
done done
``` ```
@ -279,7 +279,7 @@ jobs:
env: env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: | run: |
for file in "$ALL_CHANGED_FILES"; do for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed" echo "$file was changed"
done done
... ...
@ -726,7 +726,7 @@ The format of the version string is as follows:
env: env:
ADDED_FILES: ${{ steps.changed-files.outputs.added_files }} ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
run: | run: |
for file in "$ADDED_FILES"; do for file in ${ADDED_FILES}; do
echo "$file was added" echo "$file was added"
done done
... ...
@ -764,7 +764,7 @@ See [inputs](#inputs) for more information.
env: env:
ADDED_FILES: ${{ steps.changed-files.outputs.added_files }} ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
run: | run: |
for file in "$ADDED_FILES"; do for file in ${ADDED_FILES}; do
echo "$file was added" echo "$file was added"
done done
... ...
@ -889,7 +889,7 @@ See [inputs](#inputs) for more information.
env: env:
DELETED_FILES: ${{ steps.changed-files-specific.outputs.deleted_files }} DELETED_FILES: ${{ steps.changed-files-specific.outputs.deleted_files }}
run: | run: |
for file in "$DELETED_FILES"; do for file in ${DELETED_FILES}; do
echo "$file was deleted" echo "$file was deleted"
done done
@ -898,7 +898,7 @@ See [inputs](#inputs) for more information.
env: env:
DELETED_FILES: ${{ steps.changed-files-specific.outputs.deleted_files }} DELETED_FILES: ${{ steps.changed-files-specific.outputs.deleted_files }}
run: | run: |
for file in "$DELETED_FILES"; do for file in ${DELETED_FILES}; do
echo "$file was deleted" echo "$file was deleted"
done done
... ...
@ -1047,7 +1047,7 @@ See [inputs](#inputs) for more information.
ADDED_FILES: |- ADDED_FILES: |-
${{ steps.changed-files-for-dir1.outputs.added_files }} ${{ steps.changed-files-for-dir1.outputs.added_files }}
run: | run: |
for file in "$ADDED_FILES"; do for file in ${ADDED_FILES}; do
echo "$file was added" echo "$file was added"
done done
... ...