HandleStaleDiscussions #65
This file contains 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: HandleStaleDiscussions | |
on: | |
schedule: | |
- cron: '0 */4 * * *' | |
discussion_comment: | |
types: [created] | |
jobs: | |
handle-stale-discussions: | |
# this workflow will always fail in forks; bail if this isn't running in the upstream | |
if: github.repository == 'aws/aws-cdk' | |
name: Handle stale discussions | |
runs-on: ubuntu-latest | |
permissions: | |
discussions: write | |
steps: | |
- name: Stale discussions action | |
uses: aws-github-ops/handle-stale-discussions@v1 | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |