From 9c9e218ae697b65e410304825cac81ccdf355e66 Mon Sep 17 00:00:00 2001 From: Vacha Date: Mon, 7 Feb 2022 13:12:29 -0800 Subject: [PATCH] Adding workflow to auto delete backport merged branches from backport workflow (#2050) Signed-off-by: Vacha Shah --- .github/workflows/delete_backport_branch.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/delete_backport_branch.yml diff --git a/.github/workflows/delete_backport_branch.yml b/.github/workflows/delete_backport_branch.yml new file mode 100644 index 00000000000..d654df6b402 --- /dev/null +++ b/.github/workflows/delete_backport_branch.yml @@ -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 }} \ No newline at end of file