Close answered discussions #89
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Close answered discussions | |
| permissions: | |
| discussions: write | |
| on: | |
| # run daily | |
| schedule: | |
| - cron: '0 0 * * *' | |
| # allow manual trigger | |
| workflow_dispatch: | |
| jobs: | |
| close-answered-discussions: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'renovatebot/renovate' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| show-progress: false | |
| - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| with: | |
| script: | | |
| const script = require('.github/workflows/close-answered-discussions/script.js') | |
| console.log(await script({github, context, discussionAnsweredDays: 30})) |