ci: add Automerge and convert sphinx-tuttest to a reusable workflow

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-04-07 00:46:31 +02:00
parent 8be4a0e717
commit 29e51fc97d
2 changed files with 30 additions and 4 deletions

29
.github/workflows/Automerge.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Automerge
on:
pull_request:
push:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
Pipeline:
if: ${{ !(github.event_name != 'pull_request' && github.actor == 'dependabot[bot]') }}
uses: ./.github/workflows/sphinx-tuttest.yml
Automerge:
needs: Pipeline
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

View File

@ -1,10 +1,7 @@
name: doc-test
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_call:
jobs: