documentation/.github/workflows/remove-30days-label.yml

23 lines
541 B
YAML
Raw Normal View History

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'
});