From 54c56103aa0c1a94083e91d0b68e8a5e48a330b5 Mon Sep 17 00:00:00 2001 From: Daniel Hill Date: Fri, 2 Feb 2024 13:21:28 +0000 Subject: [PATCH] correct bash loop in examples (#1908) Co-authored-by: Tonye Jack Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 328e490d..e425caf9 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ jobs: env: ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} run: | - for file in "$ALL_CHANGED_FILES"; do + for file in ${ALL_CHANGED_FILES}; do echo "$file was changed" done @@ -147,7 +147,7 @@ jobs: env: ALL_CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }} run: | - for file in "$ALL_CHANGED_FILES"; do + for file in ${ALL_CHANGED_FILES}; do echo "$file was changed" done @@ -235,7 +235,7 @@ jobs: env: ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} run: | - for file in "$ALL_CHANGED_FILES"; do + for file in ${ALL_CHANGED_FILES}; do echo "$file was changed" done ``` @@ -279,7 +279,7 @@ jobs: env: ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} run: | - for file in "$ALL_CHANGED_FILES"; do + for file in ${ALL_CHANGED_FILES}; do echo "$file was changed" done ... @@ -726,7 +726,7 @@ The format of the version string is as follows: env: ADDED_FILES: ${{ steps.changed-files.outputs.added_files }} run: | - for file in "$ADDED_FILES"; do + for file in ${ADDED_FILES}; do echo "$file was added" done ... @@ -764,7 +764,7 @@ See [inputs](#inputs) for more information. env: ADDED_FILES: ${{ steps.changed-files.outputs.added_files }} run: | - for file in "$ADDED_FILES"; do + for file in ${ADDED_FILES}; do echo "$file was added" done ... @@ -889,7 +889,7 @@ See [inputs](#inputs) for more information. env: DELETED_FILES: ${{ steps.changed-files-specific.outputs.deleted_files }} run: | - for file in "$DELETED_FILES"; do + for file in ${DELETED_FILES}; do echo "$file was deleted" done @@ -898,7 +898,7 @@ See [inputs](#inputs) for more information. env: DELETED_FILES: ${{ steps.changed-files-specific.outputs.deleted_files }} run: | - for file in "$DELETED_FILES"; do + for file in ${DELETED_FILES}; do echo "$file was deleted" done ... @@ -1047,7 +1047,7 @@ See [inputs](#inputs) for more information. ADDED_FILES: |- ${{ steps.changed-files-for-dir1.outputs.added_files }} run: | - for file in "$ADDED_FILES"; do + for file in ${ADDED_FILES}; do echo "$file was added" done ...