Skip to content

Commit f55035d

Browse files
committed
Updated .github/workflows/auto-merge.yml
1 parent 8141f0c commit f55035d

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

.github/workflows/auto-merge.yml

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,40 @@ on:
88
jobs:
99
automerge:
1010
runs-on: ubuntu-latest
11-
if: |
12-
github.actor == 'dependabot[bot]' ||
13-
github.actor == 'dependabot' ||
14-
github.actor == 'dependabot-preview[bot]' ||
15-
github.actor == 'dependabot-preview' ||
16-
github.actor == 'pre-commit-ci' ||
17-
github.actor == 'pre-commit-ci[bot]' ||
18-
github.actor == 'renovate[bot]' ||
19-
github.actor == 'pyup-bot' ||
20-
github.actor == 'pyup-bot[bot]' ||
21-
github.actor == 'renovate'
2211
steps:
2312
- name: Get user information
2413
run: |
2514
echo "Login: ${{ github.event.pull_request.user.login }}"
2615
echo "Actor: ${{ github.actor }}"
2716
- name: automerge
17+
if: |
18+
(
19+
github.event.pull_request.user.login == 'dependabot[bot]' ||
20+
github.event.pull_request.user.login == 'dependabot' ||
21+
github.event.pull_request.user.login == 'dependabot-preview[bot]' ||
22+
github.event.pull_request.user.login == 'dependabot-preview' ||
23+
github.event.pull_request.user.login == 'renovate[bot]' ||
24+
github.event.pull_request.user.login == 'renovate' ||
25+
github.event.pull_request.user.login == 'pyup-bot' ||
26+
github.event.pull_request.user.login == 'pyup-bot[bot]' ||
27+
github.event.pull_request.user.login == 'github-actions[bot]' ||
28+
github.event.pull_request.user.login == 'pre-commit-ci' ||
29+
github.event.pull_request.user.login == 'pre-commit-ci[bot]'
30+
)
31+
&&
32+
(
33+
github.actor == 'dependabot[bot]' ||
34+
github.actor == 'dependabot' ||
35+
github.actor == 'dependabot-preview[bot]' ||
36+
github.actor == 'dependabot-preview' ||
37+
github.actor == 'renovate[bot]' ||
38+
github.actor == 'renovate' ||
39+
github.actor == 'pyup-bot' ||
40+
github.actor == 'pyup-bot[bot]' ||
41+
github.actor == 'github-actions[bot]' ||
42+
github.actor == 'pre-commit-ci' ||
43+
github.actor == 'pre-commit-ci[bot]'
44+
)
2845
uses: pascalgn/[email protected]
2946
env:
3047
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}

0 commit comments

Comments
 (0)