From 47673ff4880d48a118a465d8e2e29444560350d2 Mon Sep 17 00:00:00 2001 From: Maciej Michalski <5445923+spy86@users.noreply.github.com> Date: Tue, 4 Jun 2024 22:29:55 +0200 Subject: [PATCH] Create auto-merge-github-actions.yml --- .../workflows/auto-merge-github-actions.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/auto-merge-github-actions.yml diff --git a/.github/workflows/auto-merge-github-actions.yml b/.github/workflows/auto-merge-github-actions.yml new file mode 100644 index 0000000..94083a5 --- /dev/null +++ b/.github/workflows/auto-merge-github-actions.yml @@ -0,0 +1,23 @@ +name: Auto Merge GitHub Actions +on: + pull_request: + types: + - opened + - synchronize +permissions: + contents: write +jobs: + auto-merge: + runs-on: ubuntu-latest + if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.head.ref, 'dependabot/github_actions/') + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Auto approve + uses: hmarr/auto-approve-action@v2.0.0 + with: + github-token: ${{ secrets.GH_TOKEN }} + - name: Merge pull request + uses: pascalgn/automerge-action@v0.14.3 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}