Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .github/workflows/stale-branches.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
# .github/workflows/stale-branches.yml

name: stale-branches.yml – Delete Stale Branches

on:
workflow_dispatch: # Manual trigger from GitHub UI
#workflow_dispatch: # Manual trigger from GitHub UI
schedule:
- cron: '0 6 * * 0'

permissions: {}
permissions:
issues: write
contents: write

jobs:
stale_branches:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit

- name: Stale Branches
permissions:
issues: write
contents: write
uses: crs-k/[email protected]
with:
uses: crs-k/stale-branches@865501af01284d43aef267d4b9aab0f9f1734b12 # v8.2.2
with:
# days-before-delete: 180
# comment-updates: false
# max-issues: 20
tag-committer: true
# stale-branch-label: 'stale branch 🗑️'
stale-branch-label: 'stale branch 🗑️'
# compare-branches: 'info'
# branches-filter-regex: '^((?!dependabot))'
# rate-limit: false
Expand Down
Loading