From dd8d43e7785796a91fd4559dc9e4c45c00eb9c9a Mon Sep 17 00:00:00 2001 From: Michal Klos Date: Fri, 4 Apr 2025 13:23:40 +0200 Subject: [PATCH] ci: remove stale branches github action --- .github/remove_stale_branches.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/remove_stale_branches.yml diff --git a/.github/remove_stale_branches.yml b/.github/remove_stale_branches.yml new file mode 100644 index 00000000000..b3b4dd00c84 --- /dev/null +++ b/.github/remove_stale_branches.yml @@ -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