documentation/.github/workflows/remove-30days-label.yml
2023-05-08 13:08:04 +02:00

23 lines
No EOL
541 B
YAML

name: Remove instance label when closing
on:
issues:
types: [closed]
jobs:
replycomment:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/github-script@v6
if: contains(github.event.issue.labels.*.name, 'wait-30-days')
with:
script: |
await github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'wait-30-days'
});