From b603117f4921b063b74f23005697de11e843dd75 Mon Sep 17 00:00:00 2001 From: Vacha Shah Date: Wed, 16 Feb 2022 08:28:20 -0800 Subject: [PATCH] Adding auto delete workflow for backport branches (#289) (#291) Signed-off-by: Vacha Shah (cherry picked from commit cb1a7d8a305bf67911280d0f072e6d8962b4eb77) --- .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 000000000..d654df6b4 --- /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