Skip to content

[Automated PR]: Update generated protobuf schema (OpenSearch: 3.4.0, spec commit: b909962ee1c3ff6e2d62b3a78bda6db63e798e2b) #59

[Automated PR]: Update generated protobuf schema (OpenSearch: 3.4.0, spec commit: b909962ee1c3ff6e2d62b3a78bda6db63e798e2b)

[Automated PR]: Update generated protobuf schema (OpenSearch: 3.4.0, spec commit: b909962ee1c3ff6e2d62b3a78bda6db63e798e2b) #59

name: Delete merged branch of the auto-pr-branch PRs
on:
pull_request:
types:
- closed
jobs:
delete-branch:
runs-on: ubuntu-latest
permissions:
contents: write
if: github.repository == 'opensearch-project/opensearch-protobufs' && github.event.pull_request.head.ref == 'auto-pr-branch'
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}`,
})