Skip to content

Cleanup stale git refs (branches and tags) #67

Cleanup stale git refs (branches and tags)

Cleanup stale git refs (branches and tags) #67

Workflow file for this run

# Auto-synced file, managed by [dealroom/core-mothership](https://github.com/dealroom/core-mothership)
# The changes to this file will be automatically overwritten on the next sync. Do not edit by hand!
name: Cleanup stale git refs (branches and tags)
on:
schedule:
# At 04:20 on Sunday.
- cron: "20 4 * * 0"
permissions: read-all
jobs:
housekeeping:
name: Cleanup old branches
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Delete stale git refs
uses: beatlabs/delete-old-branches-action@6e94df089372a619c01ae2c2f666bf474f890911 # v0.0.10
with:
repo_token: ${{ github.token }}
date: 1 months ago
dry_run: false
delete_tags: false
minimum_tags: 0
exclude_open_pr_branches: true