You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Delete multiple branches
v1.0.0
An action that simply deletes a branch from repository.
- 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)