Skip to content

Commit

Permalink
Attempt to delete backport branches only for OpenSearch repo (opensea…
Browse files Browse the repository at this point in the history
…rch-project#16240)

Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya authored and dk2k committed Oct 16, 2024
1 parent 802d38f commit 14758d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/delete_backport_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
if: startsWith(github.event.pull_request.head.ref,'backport/')
if: github.repository == 'opensearch-project/OpenSearch' && startsWith(github.event.pull_request.head.ref,'backport/')
steps:
- name: Delete merged branch
uses: actions/github-script@v7
Expand Down

0 comments on commit 14758d9

Please sign in to comment.