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:
Vacha 2022-02-07 13:12:29 -08:00 committed by GitHub
parent 8288c9010c
commit 9c9e218ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -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 }}