Skip to content

Commit

Permalink
Tweak syntax for the merged branch deletion workflow (#6814)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Mar 29, 2024
1 parent 65a5e9d commit 0c90ded
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file not shown.
8 changes: 4 additions & 4 deletions .github/workflows/delete_merged_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
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/')
${{ !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 0c90ded

Please sign in to comment.