From 2b6b5c5f061649deb77a50f01f294f8a0af4e524 Mon Sep 17 00:00:00 2001 From: Pavel Sturc Date: Fri, 19 Apr 2024 11:51:26 +0200 Subject: [PATCH] Create delete-old-branches.yml --- .github/workflows/delete-old-branches.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/delete-old-branches.yml diff --git a/.github/workflows/delete-old-branches.yml b/.github/workflows/delete-old-branches.yml new file mode 100644 index 0000000000..5ce3f2457d --- /dev/null +++ b/.github/workflows/delete-old-branches.yml @@ -0,0 +1,20 @@ +name: Cleanup old branches +on: + schedule: + - cron: "0 0 * * 0" + workflow_dispatch: +jobs: + housekeeping: + name: Cleanup old branches + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Run delete-old-branches-action + uses: beatlabs/delete-old-branches-action@v0.0.10 + with: + repo_token: ${{ github.token }} + date: '1 month ago' + dry_run: false + extra_protected_branch_regex: ^(default|main)$ + exclude_open_pr_branches: false