Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SafetyQuincyF committed Dec 20, 2024
1 parent a4d7232 commit b692c66
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/contributor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
ORG: "pyupio"
TEAM: "developers"
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
ACTOR: ${{ github.actor }}
run: |
check_membership() {
local user=$1
Expand All @@ -37,16 +36,7 @@ jobs:
echo "Checking PR author: $PR_AUTHOR"
if check_membership "$PR_AUTHOR"; then
echo "proceed=true" >> $GITHUB_ENV
else
echo "Checking actor: $ACTOR"
if [ "$PR_AUTHOR" != "$ACTOR" ] && check_membership "$ACTOR"; then
echo "$ACTOR is a member of the $TEAM team."
echo "proceed=true" >> $GITHUB_ENV
else
echo "$ACTOR is NOT a member of the $TEAM team."
echo "proceed=false" >> $GITHUB_ENV
fi
fi
test:
needs: check-author
Expand Down

0 comments on commit b692c66

Please sign in to comment.