delete-merged-action
v1.2.0
Published
Automatically delete merged branches (highly configurable)
Downloads
6
Maintainers
Readme
🗑️🎬 Delete Merged Action
GitHub Action to automatically delete merged branches, with a highly configurable branches
option.
⚙️ Usage
Inputs
branches
Glob rules for names of branches to delete, defaults to !master, !main, *
Environment variables
GITHUB_TOKEN
(required)
GitHub token to delete branches: GITHUB_TOKEN: ${{ secrets.GH_PAT }}
Example
name: Merge PRs
on:
pull_request:
types:
- opened
- closed
- edited
- reopened
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: Delete merged branch
uses: koj-co/delete-merged-action@master
with:
branches: "!master, !production, *"
env:
GITHUB_TOKEN: "${{ GITHUB_TOKEN.GH_PAT }}"