mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 22:53:50 +08:00
aacf738f2d
Bumps [hmarr/auto-approve-action](https://github.com/hmarr/auto-approve-action) from 2 to 3. - [Release notes](https://github.com/hmarr/auto-approve-action/releases) - [Commits](https://github.com/hmarr/auto-approve-action/compare/v2...v3) --- updated-dependencies: - dependency-name: hmarr/auto-approve-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: Auto approve
|
|
|
|
on:
|
|
pull_request_target
|
|
|
|
jobs:
|
|
auto-approve:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: hmarr/auto-approve-action@v3
|
|
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 }}
|