2022-04-06 17:26:02 -04:00
|
|
|
name: Automerge
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
|
|
|
|
Pipeline:
|
|
|
|
if: ${{ !(github.event_name != 'pull_request' && github.actor == 'dependabot[bot]') }}
|
2022-02-27 09:27:49 -05:00
|
|
|
uses: ./.github/workflows/Pipeline.yml
|
2022-04-06 17:26:02 -04:00
|
|
|
|
|
|
|
|
|
|
|
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
|