Skip to content

Commit

Permalink
Adding auto delete workflow for backport branches (opensearch-project…
Browse files Browse the repository at this point in the history
…#289) (opensearch-project#291)

Signed-off-by: Vacha Shah <vachshah@amazon.com>
(cherry picked from commit cb1a7d8)
  • Loading branch information
VachaShah authored Feb 16, 2022
1 parent 99f1b8d commit 785a6d5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/delete_backport_branch.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 785a6d5

Please sign in to comment.