Skip to content

Multiple runs of automerge for each opened PR

Created by: pecigonzalo

We added automerge to deploy-sourcegraph-dot-com to make Renovate PRs merge consistently as Renovate was not able to keep up with the rate of changes.

We have an ongoing issue that automerge seems to be triggered for every opened PR, so on every merge to release we get 20 github-action runs, plus some more.

I have been trying to find the cause of this without much success so I opened a case with GitHub support.

Additional information

  • automerge runs are reported against the latest commit on release and as triggered via status changes.
  • I checked the statuses API with gh api https://api.github.com/repos/sourcegraph/deploy-sourcegraph-dot-com/commits/SHA/statuses and there are no new status updates that would trigger automerge runs, but I still see new runs of the action.
  • I thought this could be the action creating a status update, and triggering itself but:
    • I believe github-actions do not trigger for events on themselves to protect against loops, but I dont know if this applies to status events or only to things like commits.
    • If there were status updates, they should show in the query I shared before, but there are none.