From e14237c882c99c146a3553ccdf9c5bbe2807d88f Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Wed, 15 Nov 2023 17:07:34 +0900 Subject: [PATCH] Rev6 debugging Update auto-merge.yml --- .github/workflows/auto-merge.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index ba2ddfd..27c8b5b 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -36,7 +36,8 @@ jobs: - name: Verify if GITHUB_ACTOR is a Maintainer Team Member run: | - if [[ ! " $TEAM_MEMBERS " =~ " ${GITHUB_ACTOR} " ]]; then + TEAM_MEMBERS_ARRAY=(${TEAM_MEMBERS//,/ }) + if [[ ! " ${TEAM_MEMBERS_ARRAY[@]} " =~ " ${GITHUB_ACTOR} " ]]; then echo "User ${GITHUB_ACTOR} is not a member of the team. Stopping workflow." exit 1 fi