Multiple cron jobs
Stale sooner based on the project
Description
The issues belonging to the project X will be stale after only 20 days.
The issues belonging to the project Y will be stale after 50 days.
All the other issues will be ignored from the processing.
Example
.github/workflows/stale-project-x.yml
name: Stale project X
on:
schedule:
- cron: '0 12 * * *'
jobs:
name: Stale
id: stale
uses: sonia-corporation/stale@latest
with:
issue-only-any-project-cards: project-x
issue-days-before-stale: 20
.github/workflows/stale-project-y.yml
name: Stale project Y
on:
schedule:
- cron: '0 12 * * *'
jobs:
name: Stale
id: stale
uses: sonia-corporation/stale@latest
with:
issue-only-any-project-cards: project-y
issue-days-before-stale: 50