diff --git a/.github/workflows/.delete_backport_branch.yml.swp b/.github/workflows/.delete_backport_branch.yml.swp new file mode 100644 index 0000000000..248b66532a Binary files /dev/null and b/.github/workflows/.delete_backport_branch.yml.swp differ diff --git a/.github/workflows/delete_merged_branch.yml b/.github/workflows/delete_merged_branch.yml index 8972c1144a..a97d2674e4 100644 --- a/.github/workflows/delete_merged_branch.yml +++ b/.github/workflows/delete_merged_branch.yml @@ -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}}