add stale discussion check #16
Workflow file for this run
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: Stale GitHub Discussions | |
| on: | |
| pull_request: # just for debug purposes | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 6 * * 1" # Every Monday at 6:00 AM UTC (8:00 AM CET) | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository_owner == 'XRPLF' }} | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v2 | |
| - name: Set up python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install pip packages | |
| run: | | |
| pip install python-graphql-client | |
| pip install python-dateutil | |
| working-directory: ${{ github.workspace }} | |
| - name: Run script comment-close-old-discussions.py | |
| run: | | |
| python .github/comment-close-old-discussions.py | |
| working-directory: ${{ github.workspace }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |