mirror of
https://github.com/owncloud/ocis
synced 2026-04-26 01:35:25 +02:00
fix: ci, delete stale branches
This commit is contained in:
23
.github/workflows/remove_stale_branches.yml
vendored
Normal file
23
.github/workflows/remove_stale_branches.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Remove stale branches
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
dry-run:
|
||||
description: 'Run in dry-run mode (no actual branch deletion)'
|
||||
required: true
|
||||
default: 'false'
|
||||
type: boolean
|
||||
schedule:
|
||||
- cron: "0 0 * * *" # Everday at midnight
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
remove-stale-branches:
|
||||
name: Remove Stale Branches
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: fpicalausa/remove-stale-branches@v1.6.0
|
||||
with:
|
||||
ignore-unknown-authors: true
|
||||
default-recipient: "kobergj"
|
||||
dry-run: ${{ inputs.dry-run || 'true' }} # fallback to dry-run
|
||||
Reference in New Issue
Block a user