2022-04-06 18:46:31 -04:00
|
|
|
name: Automerge
|
|
|
|
|
2022-06-16 06:07:22 -04:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-04-06 18:46:31 -04:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
|
2022-06-15 19:38:43 -04:00
|
|
|
Matrices:
|
2022-04-06 18:46:31 -04:00
|
|
|
if: ${{ !(github.event_name != 'pull_request' && github.actor == 'dependabot[bot]') }}
|
2022-06-15 19:38:43 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
debian: ${{ steps.generate.outputs.debian }}
|
|
|
|
ubuntu: ${{ steps.generate.outputs.ubuntu }}
|
|
|
|
fedora: ${{ steps.generate.outputs.fedora }}
|
|
|
|
centos: ${{ steps.generate.outputs.centos }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- id: generate
|
|
|
|
run: ./.github/scripts/generate_job_matrices.py '${{ github.repository }}'
|
|
|
|
|
|
|
|
|
|
|
|
Debian:
|
|
|
|
needs: Matrices
|
2022-04-06 18:46:31 -04:00
|
|
|
uses: ./.github/workflows/sphinx-tuttest.yml
|
2022-06-15 19:01:05 -04:00
|
|
|
with:
|
2022-06-15 19:38:43 -04:00
|
|
|
matrix: ${{ needs.Matrices.outputs.debian }}
|
2022-06-15 19:01:05 -04:00
|
|
|
|
|
|
|
Ubuntu:
|
2022-06-15 19:38:43 -04:00
|
|
|
needs: Matrices
|
2022-06-15 19:01:05 -04:00
|
|
|
uses: ./.github/workflows/sphinx-tuttest.yml
|
|
|
|
with:
|
2022-06-15 19:38:43 -04:00
|
|
|
matrix: ${{ needs.Matrices.outputs.ubuntu }}
|
2022-06-15 19:01:05 -04:00
|
|
|
|
|
|
|
Fedora:
|
2022-06-15 19:38:43 -04:00
|
|
|
needs: Matrices
|
|
|
|
uses: ./.github/workflows/sphinx-tuttest.yml
|
|
|
|
with:
|
|
|
|
matrix: ${{ needs.Matrices.outputs.fedora }}
|
|
|
|
|
|
|
|
Centos:
|
|
|
|
needs: Matrices
|
2022-06-15 19:01:05 -04:00
|
|
|
uses: ./.github/workflows/sphinx-tuttest.yml
|
|
|
|
with:
|
2022-06-15 19:38:43 -04:00
|
|
|
matrix: ${{ needs.Matrices.outputs.centos }}
|
2022-04-06 18:46:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
Automerge:
|
2022-06-15 19:01:05 -04:00
|
|
|
needs:
|
|
|
|
- Debian
|
|
|
|
- Ubuntu
|
|
|
|
- Fedora
|
2022-06-15 19:38:43 -04:00
|
|
|
- Centos
|
2022-04-06 18:46:31 -04:00
|
|
|
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
|