Adding workflow to auto delete backport merged branches from backport workflow (#2050)
Signed-off-by: Vacha Shah <vachshah@amazon.com>
This commit is contained in:
parent
8288c9010c
commit
9c9e218ae6
|
@ -0,0 +1,15 @@
|
||||||
|
name: Delete merged branch of the backport PRs
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
delete-branch:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: startsWith(github.event.pull_request.head.ref,'backport/')
|
||||||
|
steps:
|
||||||
|
- name: Delete merged branch
|
||||||
|
uses: SvanBoxel/delete-merged-branch@main
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue