From e6c33536ca0a67c00dac2b4abac4617ae4bdf9fb Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Tue, 29 Mar 2022 14:02:29 +0200 Subject: [PATCH] ci: automerge dependabot PRs Signed-off-by: Unai Martinez-Corral --- .github/workflows/Doc.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/Doc.yml b/.github/workflows/Doc.yml index 8311aad..7ba2f12 100644 --- a/.github/workflows/Doc.yml +++ b/.github/workflows/Doc.yml @@ -9,6 +9,7 @@ on: jobs: + Docs: runs-on: ubuntu-latest name: '📓 Docs' @@ -48,3 +49,17 @@ jobs: git config --local user.name "GitHub Actions" git commit -a -m "update ${{ github.sha }}" git push -u origin +HEAD:gh-pages + + + Automerge: + needs: Test + if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + name: Automerge dependabot PRs + permissions: + contents: write + + steps: + + - name: Auto-merge Dependabot PR + run: GITHUB_TOKEN='${{ github.token }}' gh pr merge '${{ github.event.pull_request.html_url }}' --squash