Skip to content

Stops workflow if push event is triggered by deleting a branch.

License

Notifications You must be signed in to change notification settings

UltCombo/action-filter-deleted-branches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action to filter deleted branches

Stops workflow if push event is triggered by deleting a branch.

This action solves the problem of GitHub running the Actions workflow for the push event on the default branch whenever any branch is deleted, which could potentially have unexpected consequences (unintentional deployments etc.).

Usage

Add this action to the beginning of the workflow. It does not require any arguments, environment variables or secrets.

action "Filter deleted branches" {
  uses = "UltCombo/action-filter-deleted-branches@master"
}

Related

About

Stops workflow if push event is triggered by deleting a branch.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published