From 284d187541900d5ab8f9f9b8df993a2943af477f Mon Sep 17 00:00:00 2001 From: Joseph Hale Date: Mon, 30 Oct 2023 10:50:59 -0700 Subject: [PATCH] fix: Auto-merge dependabot PRs Apparently the `check_suite` trigger is only activated on the default branch. Since dependabot PRs are run on the dependabot-created branch, they never activate the `check_suite` trigger. This commit switches to the `workflow_run` trigger, which works on any branch, but requires extra maintenance of the workflow names. --- .github/workflows/auto-merge-dependabot.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-merge-dependabot.yml b/.github/workflows/auto-merge-dependabot.yml index 7072d7e..9e53104 100644 --- a/.github/workflows/auto-merge-dependabot.yml +++ b/.github/workflows/auto-merge-dependabot.yml @@ -1,9 +1,12 @@ name: Auto-merge Dependabot PRs on: - check_suite: + workflow_run: types: - completed + workflows: + # List all required workflow names here. + - 'Run `pre-commit` on PRs' jobs: merge-me: -- 2.51.2