You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Delete multiple branches
v2.0.0
An action that deletes multiple branches from repository.
Optionally one can provide a prefix
or suffix
strings that would be appended or prepended to every branch name.
- name: Delete PRs head branches
uses: dawidd6/action-delete-branch@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
numbers: 13,22,${{ github.event.pull_request.number }}
- name: Delete pr-* branches
uses: dawidd6/action-delete-branch@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branches: 13,22,33
prefix: 'pr-'
- name: Delete branch
uses: dawidd6/action-delete-branch@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branches: test
suffix: '-done'