Merge pull request #31 from trails-cool/fix-automerge-workflow-run

Fix automerge: trigger after CI completes
This commit is contained in:
Ullrich Schäfer 2026-03-25 00:35:24 +01:00 committed by GitHub
commit 19ce2d1f1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,12 @@
name: Automerge
# Triggers:
# - pull_request: fires when PR is opened, labeled, updated, etc.
# Handles the case where the label is added after CI already passed.
# - workflow_run (CI): fires after the CI workflow completes.
# This is needed because check_suite and status events don't reliably
# fire for workflows on the same commit (GitHub prevents infinite loops).
# Without this, the automerge action never retries after CI passes.
on:
pull_request:
types:
@ -14,10 +21,10 @@ on:
pull_request_review:
types:
- submitted
check_suite:
workflow_run:
workflows: ["CI"]
types:
- completed
status: {}
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true