Skip to content

Commit

Permalink
Update autopr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanmtz authored Aug 1, 2023
1 parent 0c528a6 commit 78c4a60
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/autopr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@ jobs:
steps:
- name: Install jq
run: sudo apt-get install jq
- name: Check if label was added by a collaborator
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
is_collaborator=$(curl -s -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/${{ github.repository }}/collaborators/${{ github.event.sender.login }}" | jq -r '.message')
if [ "$is_collaborator" == "Not Found" ]; then
echo "Label not added by a collaborator. Skipping action."
exit 78
fi
- name: Checkout
uses: actions/checkout@v2
with:
Expand Down

0 comments on commit 78c4a60

Please sign in to comment.