Skip to content

Commit

Permalink
Merge pull request #3 from peterzhuamazon/testmain2
Browse files Browse the repository at this point in the history
Add more
  • Loading branch information
peterzhuamazon authored Mar 29, 2024
2 parents 1306193 + 2c1559a commit 57df232
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/delete_backport_branch.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: Delete merged branch of the backport PRs
on:
name: Delete merged branch of the PRs
on:
pull_request:
types:
- closed

jobs:
delete-branch:
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.head.repo.full_name, 'peterzhuamazon/documentation-website')
if: |
startsWith(github.event.pull_request.head.repo.full_name, 'opensearch-project/documentation-website') &&
${{ !startsWith(github.event.pull_request.head.ref, 'main') }} &&
${{ !startsWith(github.event.pull_request.head.ref, '1.') }} &&
${{ !startsWith(github.event.pull_request.head.ref, '2.') }} &&
${{ !startsWith(github.event.pull_request.head.ref, 'version/') }}
steps:
- name: Echo remove branch
run: echo Removing ${{github.event.pull_request.head.ref}}
Expand Down

0 comments on commit 57df232

Please sign in to comment.