From 071a4c5f5ca66c1734ec1e8ad13c60501441af61 Mon Sep 17 00:00:00 2001 From: "Peter St. John" Date: Wed, 22 Jan 2025 19:47:07 +0000 Subject: [PATCH] try different parsing command Signed-off-by: Peter St. John --- .github/workflows/approvals.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/approvals.yml b/.github/workflows/approvals.yml index ac8726796..ae3dea14f 100644 --- a/.github/workflows/approvals.yml +++ b/.github/workflows/approvals.yml @@ -48,8 +48,11 @@ jobs: TIER2_APPROVED=false echo "Approved Users: $APPROVED_USERS" - IFS=$'\n' read -d '' -ra TIER2_REVIEWERS_ARR <<< "$TIER2_REVIEWERS" - echo "TIER2_REVIEWERS: ${!TIER2_REVIEWERS_ARR[@]}" + echo "Tier 2 Reviewers: $TIER2_REVIEWERS" + + + IFS=$'\n' read -r -d '' -a TIER2_REVIEWERS_ARRAY <<< "$TIER2_REVIEWERS" + echo "TIER2_REVIEWERS_ARRAY: ${!TIER2_REVIEWERS_ARR[@]}" # Iterate over approved users and compare with cleaned TIER2_REVIEWERS for USER in ${APPROVED_USERS//,/ }; do