|
8 | 8 | jobs: |
9 | 9 | automerge: |
10 | 10 | 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' |
22 | 11 | steps: |
23 | 12 | - name: Get user information |
24 | 13 | run: | |
25 | 14 | echo "Login: ${{ github.event.pull_request.user.login }}" |
26 | 15 | echo "Actor: ${{ github.actor }}" |
27 | 16 | - 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 | + ) |
28 | 45 | |
29 | 46 | env: |
30 | 47 | GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} |
|
0 commit comments