Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
git-branch

GitHub Action

Delete multiple branches

v1.0.1

Delete multiple branches

git-branch

Delete multiple branches

Delete multiple branches from repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Delete multiple branches

uses: dawidd6/[email protected]

Learn more about this action in dawidd6/action-delete-branch

Choose a version

Delete branch Github Action

An action that simply deletes a branch from repository.

Usage

- name: Delete PR head branch
  uses: dawidd6/action-delete-branch@master
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    branch: ${{ github.pull_request.head.ref }}
    be_kind: true # don't fail on errors (optional)