Try running auto-approve after other jobs (#2328)
This commit is contained in:
12
.github/workflows/auto-approve.yml
vendored
12
.github/workflows/auto-approve.yml
vendored
@ -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
|
|
||||||
12
.github/workflows/nodejs.yml
vendored
12
.github/workflows/nodejs.yml
vendored
@ -2,7 +2,7 @@
|
|||||||
name: Node CI
|
name: Node CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request: {}
|
pull_request_target: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
paths-filter:
|
paths-filter:
|
||||||
@ -72,3 +72,13 @@ jobs:
|
|||||||
- name: License checker
|
- name: License checker
|
||||||
run: |
|
run: |
|
||||||
npm run license-checker
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user