Skip to content

Upgrade bytebuddy and objenesis version to match OpenSearch core and, update github ci runner for macos #1252

Upgrade bytebuddy and objenesis version to match OpenSearch core and, update github ci runner for macos

Upgrade bytebuddy and objenesis version to match OpenSearch core and, update github ci runner for macos #1252

name: Delete merged branch of the backport PRs
on:
pull_request:
types:
- closed
jobs:
delete-branch:
runs-on: ubuntu-latest
permissions:
contents: write
if: github.repository == 'opensearch-project/k-NN' && startsWith(github.event.pull_request.head.ref,'backport/')
steps:
- name: Delete merged branch
uses: actions/github-script@v7
with:
script: |
github.rest.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `heads/${context.payload.pull_request.head.ref}`,
})