From b0d8a4450ade1263dccfd1c521dc42ca91efbfc3 Mon Sep 17 00:00:00 2001 From: texas-egads <36241304+texas-egads@users.noreply.github.com> Date: Wed, 13 Dec 2023 21:36:57 -0600 Subject: [PATCH] Update add-contributor.yml --- .github/workflows/add-contributor.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/add-contributor.yml b/.github/workflows/add-contributor.yml index 13f23bf..1a8bbb6 100644 --- a/.github/workflows/add-contributor.yml +++ b/.github/workflows/add-contributor.yml @@ -2,13 +2,13 @@ name: Grant Permissions on: workflow_dispatch: - inputs: - add-usernames: - description: 'Usernames to grant permissions (comma-separated)' - required: true - remove-usernames: - description: 'Usernames to remove permissions (comma-separated)' - required: true + # inputs: + # add-usernames: + # description: 'Usernames to grant permissions (comma-separated)' + # required: true + # remove-usernames: + # description: 'Usernames to remove permissions (comma-separated)' + # required: true jobs: add-collaborator: @@ -26,7 +26,7 @@ jobs: GH_TOKEN="${{ secrets.GH_TOKEN }}" # Split comma-separated list of usernames to remove into an array - IFS=',' read -ra REMOVE_USERNAMES <<< "${{ github.event.inputs.remove-usernames }}" + IFS=',' read -ra REMOVE_USERNAMES <<< "${{ secrets.REMOVE_NAMES }}" for USERNAME in "${REMOVE_USERNAMES[@]}"; do # Remove the user as a collaborator @@ -46,7 +46,7 @@ jobs: GH_TOKEN="${{ secrets.GH_TOKEN }}" # Split comma-separated list of usernames to add into an array - IFS=',' read -ra ADD_USERNAMES <<< "${{ github.event.inputs.add-usernames }}" + IFS=',' read -ra ADD_USERNAMES <<< "${{ secrets.ADD_NAMES }}" for USERNAME in "${ADD_USERNAMES[@]}"; do # Get the user's ID