Skip to content

Update Model Upload History - opensearch-project/opensearch-neural-sparse-encoding-doc-v2-mini (v.1.0.0)(TORCH_SCRIPT) #113

Update Model Upload History - opensearch-project/opensearch-neural-sparse-encoding-doc-v2-mini (v.1.0.0)(TORCH_SCRIPT)

Update Model Upload History - opensearch-project/opensearch-neural-sparse-encoding-doc-v2-mini (v.1.0.0)(TORCH_SCRIPT) #113

name: Delete merged branch for model-uploader & model-listing-uploader
on:
pull_request:
types:
- closed
jobs:
delete-branch:
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.head.ref,'model-uploader/') || startsWith(github.event.pull_request.head.ref,'model-listing-uploader/')
steps:
# Compared to backport.yml, this GitHub action will delete branch
# of a PR that is closed, but not merged as well.
- name: Delete closed PR branch
uses: dawidd6/action-delete-branch@v3
with:
GITHUB_TOKEN: ${{github.token}}
numbers: ${{github.event.pull_request.number}}