diff --git a/phase7_branch_protection.sh b/phase7_branch_protection.sh index be03f59..9215bef 100755 --- a/phase7_branch_protection.sh +++ b/phase7_branch_protection.sh @@ -16,12 +16,12 @@ source "${SCRIPT_DIR}/lib/common.sh" load_env require_vars GITEA_ADMIN_TOKEN GITEA_INTERNAL_URL GITEA_ORG_NAME \ - REPO_1_NAME REPO_2_NAME REPO_3_NAME \ + REPO_NAMES \ PROTECTED_BRANCH REQUIRE_PR_REVIEW REQUIRED_APPROVALS phase_header 7 "Branch Protection" -REPOS=("$REPO_1_NAME" "$REPO_2_NAME" "$REPO_3_NAME") +read -ra REPOS <<< "$REPO_NAMES" SUCCESS=0 FAILED=0