Skip to content

Commit 0c90ded

Browse files
Tweak syntax for the merged branch deletion workflow (#6814)
Signed-off-by: Peter Zhu <[email protected]>
1 parent 65a5e9d commit 0c90ded

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: .github/workflows/.delete_backport_branch.yml.swp

12 KB
Binary file not shown.

Diff for: .github/workflows/delete_merged_branch.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010
if: |
1111
startsWith(github.event.pull_request.head.repo.full_name, 'opensearch-project/documentation-website') &&
12-
startsWith(! github.event.pull_request.head.ref, 'main') &&
13-
startsWith(! github.event.pull_request.head.ref, '1.') &&
14-
startsWith(! github.event.pull_request.head.ref, '2.') &&
15-
startsWith(! github.event.pull_request.head.ref, 'version/')
12+
${{ !startsWith(github.event.pull_request.head.ref, 'main') }} &&
13+
${{ !startsWith(github.event.pull_request.head.ref, '1.') }} &&
14+
${{ !startsWith(github.event.pull_request.head.ref, '2.') }} &&
15+
${{ !startsWith(github.event.pull_request.head.ref, 'version/') }}
1616
steps:
1717
- name: Echo remove branch
1818
run: echo Removing ${{github.event.pull_request.head.ref}}

0 commit comments

Comments
 (0)