1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-16 01:10:30 +02:00

Add permissions to Remove Labels workflow (#11051)

This commit is contained in:
Álvaro Mondéjar Rubio 2024-05-28 14:37:26 +02:00 committed by GitHub
parent 5c82f78a0d
commit 346d4743ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,12 +1,17 @@
name: Remove Outdated Labels
on:
pull_request_target:
pull_request:
types:
- closed
issues:
types:
- closed
permissions:
issues: write
pull-requests: write
jobs:
remove-merged-pr-labels:
name: Remove merged pull request labels
@ -31,9 +36,10 @@ jobs:
pending
permission required
won't add
remove-closed-pr-labels:
name: Remove closed pull request labels
if: github.event_name == 'pull_request_target' && (! github.event.pull_request.merged)
if: github.event_name == 'pull_request' && (! github.event.pull_request.merged)
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
@ -48,6 +54,7 @@ jobs:
in discussion
pending
assessing
remove-closed-issue-labels:
name: Remove closed issue labels
if: github.event.issue.state == 'closed'