Skip to content

use an existing github action for that #6

use an existing github action for that

use an existing github action for that #6

name: Delete old branches
#on:
# schedule:
# - cron: "0 0 * * *" # Runs every day at midnight (UTC)
on: [push]
jobs:
delete-old-branches:
name: Delete old branches
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run delete-old-branches-action
uses: beatlabs/[email protected]
with:
repo_token: ${{ github.token }}
date: '7 days ago'
default_branches: main,master,staging
dry_run: true
exclude_open_pr_branches: true