From bdffdcd68c6890cc252bd74565b15261f6d8b16e Mon Sep 17 00:00:00 2001 From: Emotion Date: Mon, 25 Jul 2022 00:59:15 +1200 Subject: [PATCH] Create auto-approve.yml --- .github/workflows/auto-approve.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/auto-approve.yml diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 0000000..95a3d28 --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,26 @@ +name: Auto approve + +on: pull_request + +permissions: + contents: read + +jobs: + auto-approve: + + name: Auto approve Pull Request + runs-on: ubuntu-latest + + # for hmarr/auto-approve-action to approve PRs + permissions: + pull-requests: write + + # Only run this on the main repo + if: github.event.pull_request.head.repo.full_name == 'EllieBotDevs/Ellie-bot' + + steps: + - name: Approve via actions + uses: hmarr/auto-approve-action@v2.2.1 + if: github.actor == 'EmotionChild' || github.actor == 'dependabot[bot]' + with: + github-token: "${{ secrets.GITHUB_TOKEN }}"