mirror of
https://github.com/stan220/flathub.git
synced 2026-09-08 17:28:57 +00:00
merge: Revert to old check
This commit is contained in:
@@ -18,14 +18,14 @@ jobs:
|
||||
- name: Check if actor is reviewer
|
||||
id: check_reviewer
|
||||
run: |
|
||||
if [ "$(gh api --silent repos/"$GH_REPO"/collaborators/"$ACTOR"/permission | jq -r '.user.permissions.push')" == "true" ]; then
|
||||
if gh api /orgs/"$REPO_OWNER"/teams/reviewers/memberships/"$ACTOR" --silent; then
|
||||
echo "is-reviewer=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "is-reviewer=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
GITHUB_TOKEN: ${{ secrets.FLATHUBBOT_TOKEN }}
|
||||
REPO_OWNER: ${{ github.repository_owner }}
|
||||
ACTOR: ${{ github.actor }}
|
||||
|
||||
- run: /app/entrypoint.py
|
||||
|
||||
Reference in New Issue
Block a user