ci: automerge dependabot PRs

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-03-29 14:02:29 +02:00
parent df6a586a5f
commit e6c33536ca
1 changed files with 15 additions and 0 deletions

View File

@ -9,6 +9,7 @@ on:
jobs: jobs:
Docs: Docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: '📓 Docs' name: '📓 Docs'
@ -48,3 +49,17 @@ jobs:
git config --local user.name "GitHub Actions" git config --local user.name "GitHub Actions"
git commit -a -m "update ${{ github.sha }}" git commit -a -m "update ${{ github.sha }}"
git push -u origin +HEAD:gh-pages 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