2021-03-28 00:45:51 +08:00
|
|
|
name: Auto approve
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request_target
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
auto-approve:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-11-17 20:06:33 +08:00
|
|
|
- uses: hmarr/auto-approve-action@v3
|
2021-05-25 12:49:43 +08:00
|
|
|
if: |
|
|
|
|
(
|
|
|
|
github.event.pull_request.user.login == 'dependabot[bot]' ||
|
|
|
|
github.event.pull_request.user.login == 'dependabot' ||
|
|
|
|
github.event.pull_request.user.login == 'dependabot-preview[bot]' ||
|
|
|
|
github.event.pull_request.user.login == 'dependabot-preview' ||
|
|
|
|
github.event.pull_request.user.login == 'renovate[bot]' ||
|
|
|
|
github.event.pull_request.user.login == 'renovate' ||
|
|
|
|
github.event.pull_request.user.login == 'github-actions[bot]'
|
|
|
|
)
|
|
|
|
&&
|
|
|
|
(
|
|
|
|
github.actor == 'dependabot[bot]' ||
|
|
|
|
github.actor == 'dependabot' ||
|
|
|
|
github.actor == 'dependabot-preview[bot]' ||
|
|
|
|
github.actor == 'dependabot-preview' ||
|
|
|
|
github.actor == 'renovate[bot]' ||
|
|
|
|
github.actor == 'renovate' ||
|
|
|
|
github.actor == 'github-actions[bot]'
|
|
|
|
)
|
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.PAT_TOKEN }}
|