Skip to content

Commit c032ae9

Browse files
authored
Add dry_run parameter to stale-branches workflow (#25845)
1 parent b3cd812 commit c032ae9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/stale-branches.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
# that aren't protected and haven't been committed to in over 6 months.
33

44
name: Delete Stale Branches
5-
on: workflow_dispatch
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
dry_run:
9+
description: 'Run in dry-run mode (no branches will be deleted)'
10+
required: false
11+
type: boolean
12+
default: false
613

714
permissions:
815
contents: read
@@ -21,6 +28,6 @@ jobs:
2128
with:
2229
repo_token: ${{ github.token }}
2330
date: '6 months ago'
24-
dry_run: false
31+
dry_run: ${{ inputs.dry_run }}
2532
exclude_open_pr_branches: true
2633
extra_protected_branch_regex: ^release/.*

0 commit comments

Comments
 (0)