From 37b8a332093bdaddf628d360e465e97ab0558155 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Mon, 12 Aug 2024 12:01:21 -0500 Subject: [PATCH] Try running auto-approve after other jobs (#2328) --- .github/workflows/auto-approve.yml | 12 ------------ .github/workflows/nodejs.yml | 12 +++++++++++- 2 files changed, 11 insertions(+), 13 deletions(-) delete mode 100644 .github/workflows/auto-approve.yml diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml deleted file mode 100644 index 0af84acb3..000000000 --- a/.github/workflows/auto-approve.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 225b67732..7b61028d4 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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