Skip to content

Commit 51e369b

Browse files
authored
ci: update global workflows (#239)
1 parent eceeccc commit 51e369b

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/automerge.yml

+5-12
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,15 @@ name: Automerge release bump PR
66
on:
77
pull_request_target:
88
types:
9-
- labeled
10-
- unlabeled
11-
- synchronize
129
- opened
13-
- edited
14-
- ready_for_review
15-
- reopened
16-
- unlocked
17-
pull_request_review:
18-
types:
19-
- submitted
10+
- synchronize
2011

2112
jobs:
2213
autoapprove:
23-
if: github.event.pull_request.draft == false && (github.actor == 'asyncapi-bot' || github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]') && !contains(github.event.pull_request.labels.*.name, 'released')
14+
if: >
15+
contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]"]'), github.event.pull_request.user.login) &&
16+
contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]"]'), github.actor) &&
17+
!contains(github.event.pull_request.labels.*.name, 'released')
2418
runs-on: ubuntu-latest
2519
steps:
2620
- name: Autoapproving
@@ -42,7 +36,6 @@ jobs:
4236
4337
automerge:
4438
needs: [autoapprove]
45-
if: github.event.pull_request.user.login == 'asyncapi-bot' || github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'dependabot-preview[bot]'
4639
runs-on: ubuntu-latest
4740
steps:
4841
- name: Automerging

0 commit comments

Comments
 (0)