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:01:05 -04:00
|
|
|
Debian:
|
2022-04-06 18:46:31 -04:00
|
|
|
if: ${{ !(github.event_name != 'pull_request' && github.actor == 'dependabot[bot]') }}
|
|
|
|
uses: ./.github/workflows/sphinx-tuttest.yml
|
2022-06-15 19:01:05 -04:00
|
|
|
with:
|
|
|
|
distribution: debian
|
|
|
|
|
|
|
|
Ubuntu:
|
|
|
|
if: ${{ !(github.event_name != 'pull_request' && github.actor == 'dependabot[bot]') }}
|
|
|
|
uses: ./.github/workflows/sphinx-tuttest.yml
|
|
|
|
with:
|
|
|
|
distribution: ubuntu
|
|
|
|
|
|
|
|
Fedora:
|
|
|
|
if: ${{ !(github.event_name != 'pull_request' && github.actor == 'dependabot[bot]') }}
|
|
|
|
uses: ./.github/workflows/sphinx-tuttest.yml
|
|
|
|
with:
|
|
|
|
distribution: fedora
|
2022-04-06 18:46:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
Automerge:
|
2022-06-15 19:01:05 -04:00
|
|
|
needs:
|
|
|
|
- Debian
|
|
|
|
- Ubuntu
|
|
|
|
- Fedora
|
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
|