chore: conditional workflows on all branches

This commit is contained in:
Stéphane Lesimple
2026-04-02 18:36:43 +02:00
parent 5fc008f2d4
commit 5e2af29e6a
4 changed files with 53 additions and 114 deletions

View File

@@ -3,6 +3,16 @@ name: 'Manage stale issues and PRs'
on:
schedule:
- cron: '37 7 * * *'
workflow_dispatch:
inputs:
action:
description: "dry-run"
required: true
default: "dryrun"
type: choice
options:
- dryrun
- apply
permissions:
issues: write
@@ -20,4 +30,4 @@ jobs:
days-before-close: 7
stale-issue-label: stale
remove-stale-when-updated: true
debug-only: true
debug-only: ${{ case(inputs.action == 'apply', false, true) }}