Skip to content

Commit

Permalink
restructure how we check authed users
Browse files Browse the repository at this point in the history
  • Loading branch information
nikellepetrillo committed Jan 14, 2025
1 parent 71b8672 commit 35492e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/authorized_users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
id: gatekeeper
run: |
echo "The actor is: ${GITHUB_ACTOR}"
APPROVED_USERS=("nikellepetrillo")
APPROVED_USERS=("")
if [[ " ${APPROVED_USERS[@]} " =~ " ${GITHUB_ACTOR} " ]]; then
echo "User ${GITHUB_ACTOR} is approved."
echo "approved=false" >> $GITHUB_OUTPUT
echo "approved=true" >> $GITHUB_OUTPUT
echo "error-message=none" >> $GITHUB_OUTPUT
else
echo "User ${GITHUB_ACTOR} is not approved."
Expand Down

0 comments on commit 35492e0

Please sign in to comment.