mirror of https://github.com/NVIDIA/nccl.git
32 lines
759 B
YAML
32 lines
759 B
YAML
name: Close Old Issues
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '30 2 * * *' # Runs daily at 02:30 UTC
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
issues: write
|
|
|
|
jobs:
|
|
close-old-issues:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install dependencies
|
|
run: npm install @octokit/rest@22.0.0
|
|
|
|
- name: Run close-old-issues script
|
|
run: node .github/workflows/close-old-issues.js
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
REPO_OWNER: ${{ github.repository_owner }}
|
|
REPO_NAME: ${{ github.event.repository.name || github.repository }}
|