2021-03-22 13:15:43 +10:00
|
|
|
name: Remove Labels
|
|
|
|
|
2022-11-15 07:17:32 +01:00
|
|
|
on: [issue_comment, pull_request]
|
2021-03-22 13:15:43 +10:00
|
|
|
|
2022-06-29 01:14:45 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-03-22 13:15:43 +10:00
|
|
|
jobs:
|
|
|
|
remove_labels:
|
2022-06-29 01:14:45 +00:00
|
|
|
permissions:
|
|
|
|
issues: write # for actions-ecosystem/action-remove-labels to remove issue labels
|
2022-08-05 11:11:18 +02:00
|
|
|
pull-requests: write # for actions-ecosystem/action-remove-labels to remove PR labels
|
2021-03-22 13:15:43 +10:00
|
|
|
if: contains(github.event.issue.labels.*.name, 'stale')
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions-ecosystem/action-remove-labels@v1
|
|
|
|
if: ${{ github.event.comment.user.url != 'https://github.com/apps/github-actions' }}
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
labels: |
|
|
|
|
stale
|