Skip to content

Commit e7e0d48

Browse files
authored
chore: release_notes filter for maintainers instead of admin (#3937)
1 parent f4e0cc1 commit e7e0d48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: .github/workflows/release_notes.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.comment.body == 'run release_notes') }}
2222
steps:
2323
# Determine if the triggering_actor is allowed to run this action
24-
# We only permit admins
24+
# We only permit maintainers
2525
# Not only is 'triggering_actor' common between the trigger events it will also change if someone re-runs an old job
2626
- name: check if triggering_actor is allowed to generate notes
2727
env:
2828
GITHUB_TOKEN: ${{ github.token }}
2929
COMMENTER: ${{ github.triggering_actor && github.triggering_actor || 'empty_triggering_actor' }}
30-
API_ENDPOINT: /repos/${{ github.repository }}/collaborators?permission=admin
30+
API_ENDPOINT: /repos/${{ github.repository }}/collaborators?permission=maintain
3131
shell: bash
3232
run: |
3333
if [ $COMMENTER = "empty_triggering_actor" ]; then exit 1; fi

0 commit comments

Comments
 (0)