https://github.com/ultcombo/action-filter-deleted-branches
Stops workflow if push event is triggered by deleting a branch.
https://github.com/ultcombo/action-filter-deleted-branches
action actions ci github-action github-actions
Last synced: 11 months ago
JSON representation
Stops workflow if push event is triggered by deleting a branch.
- Host: GitHub
- URL: https://github.com/ultcombo/action-filter-deleted-branches
- Owner: UltCombo
- License: mit
- Created: 2019-02-01T20:40:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-01T20:41:47.000Z (over 7 years ago)
- Last Synced: 2025-06-03T04:16:58.484Z (about 1 year ago)
- Topics: action, actions, ci, github-action, github-actions
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- [Delete merged branch](https://github.com/SvanBoxel/delete-merged-branch#delete-merged-branch): GitHub App/Action to automatically deleted merged branches.