Try running auto-approve after other jobs (#2328)

This commit is contained in:
Josh Mock
2024-08-12 12:01:21 -05:00
committed by GitHub
parent 99cefe8b19
commit 37b8a33209
2 changed files with 11 additions and 13 deletions

View File

@ -1,12 +0,0 @@
---
name: "Auto-approve codegen PRs"
on: pull_request_target
jobs:
auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: github.actor == 'elasticmachine'
steps:
- uses: hmarr/auto-approve-action@v4

View File

@ -2,7 +2,7 @@
name: Node CI
on:
pull_request: {}
pull_request_target: {}
jobs:
paths-filter:
@ -72,3 +72,13 @@ jobs:
- name: License checker
run: |
npm run license-checker
auto-approve:
name: Auto-approve
needs: [test, license]
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: github.actor == 'elasticmachine'
steps:
- uses: hmarr/auto-approve-action@v4