Skip to content

add workflow_run

add workflow_run #1

Workflow file for this run

name: Close inactive issues

Check failure on line 1 in .github/workflows/close_old_prs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/close_old_prs.yml

Invalid workflow file

`on.workflow_run` does not reference any workflows. See https://docs.github.com/actions/learn-github-actions/events-that-trigger-workflows#workflow_run for more information
on:
schedule:
- cron: "45 19 * * *"
workflow_run:
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
# close all issues and prs older than 100 days
days-before-issue-stale: 100
days-before-issue-close: 0
days-before-pr-stale: 100
days-before-pr-close: 0
stale-issue-message: 'This issue has been automatically closed because it has not had recent activity.'
stale-pr-message: 'This pull request has been automatically closed because it has not had recent activity.'