I am using following command to add or remove users in to GitHub teams . where username , orgname, team name and role are passed as arguments.
gh api \
--method PUT \
-H "Accept: application/vnd.github+json" \
/orgs/$orgname/teams/$teamname/memberships/$membername \
-f role='$role'
how can i make this script to run for multiple team names and multiple usernames. i want to pass them as arguments in rundeck job
I tried using for loop , but cant make to run for multiple teams and multiple users at once