From 5c7bee418074aac9cb5298c48a4b74e535951501 Mon Sep 17 00:00:00 2001 From: Gitii Date: Sun, 6 Feb 2022 20:34:18 +0100 Subject: [PATCH] Approve only once. --- .github/workflows/auto-approve.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index dc707a7..06ec281 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -1,13 +1,14 @@ name: Auto approve on: - pull_request_target + pull_request_target: + types: [opened] jobs: auto-approve: runs-on: ubuntu-latest steps: - - uses: hmarr/auto-approve-action@v2 - if: github.actor == 'Gitii' - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: hmarr/auto-approve-action@v2 + if: github.actor == 'Gitii' + with: + github-token: "${{ secrets.GITHUB_TOKEN }}"