Skip to content

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Delete Old Branches

This action deletes branches that haven't had a commit in the last X days, and deletes the oldest tags.

DO NOT USE v3 as it has a bug

Requirements

Requires the repo to be checked out, this can be done with the actions/checkout@v2 action on the marketplace

KEEP Branches

Adding KEEP to the beginning of a branch name will bypass deleting the branch.

Inputs

numDays

The number of days after which the branches will be deleted.

Required Default
False 180

numTags

The number of most recent tags. (Set to 0 to delete all tags)

Required Default
False 5

skipTags

Tags with this prefix will be skipped from deletion.

dryRun

Default value is 'true'.

Required Default
False 'true'

Example Usage

steps:
  # To use this action, you must check out the repository
  - name: Checkout
    uses: actions/checkout@v2
    with:
      fetch-depth: 0
  - name: Cleanup
    uses: digicert/prune_old_branches_action@v1
    with:
      numDays: '200'
      numTags: '3'
      skipTags: 'v'  #optional
      dryRun: 'true'

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages