Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.
/ cleankeeper Public archive

A GitHub Action to clean obsoleted greenkeeper branches

License

Notifications You must be signed in to change notification settings

cometkim/cleankeeper

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cleankeeper

A GitHub Action to clean obsoleted Greenkeeper's branches

  • Run on merge pull request event

  • It will automatically removes branches which have:

    • greenkeeper/ prefix
    • same package name with merged ref
    • smaller version(semver or numeric) than merged ref

Example

In your .github/main.workflow

workflow "My Workflow" {
  on = "pull_request"
  resolves = ["Cleankeeper"]
}

action "Cleankeeper" {
  uses = "cometkim/cleankeeper@master"
  secrets = ["GITHUB_TOKEN"]
  env = {
    PER_PAGE = "100"
  }
}