From a4ac46b93dbb5a2c1fb4a2664b4e3c6ad8621c41 Mon Sep 17 00:00:00 2001 From: Vacha Date: Tue, 15 Feb 2022 07:21:24 -0800 Subject: [PATCH] Adding auto delete workflow for backport branches (#1604) 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 0000000000..ae5e0aa2a9 --- /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@b77e873cee00b09f55cc553bd24aae5f8dfc9157 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file