This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
Close inactive issues #113
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: 'Close inactive issues' | |
on: | |
#workflow_dispatch: | |
schedule: | |
- cron: '0 1 * * *' | |
jobs: | |
notify_stale_issues: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
sparse-checkout: | | |
.github | |
- name: Install dependencies | |
run: | | |
npm install @octokit/rest node-fetch | |
- name: Notify on stale issues | |
run: node .github/scripts/close_inactive/notify_stale_issues.mjs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
close_stale_issues: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
sparse-checkout: | | |
.github | |
- name: Install dependencies | |
run: | | |
npm install @octokit/rest node-fetch | |
- name: set stale issues | |
run: node .github/scripts/close_inactive/close_stale_issues.mjs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |