Skip to content

Commit

Permalink
Update add-contributor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
texas-egads authored Dec 14, 2023
1 parent 7158247 commit b0d8a44
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/add-contributor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b0d8a44

Please sign in to comment.