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:
parent
5c82f78a0d
commit
346d4743ad
11
.github/workflows/remove-labels.yml
vendored
11
.github/workflows/remove-labels.yml
vendored
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user