The admin update check could never succeed:
- UPDATE_SOURCE_REPOSITORY pointed at hieunc229/mailflare-team, which is not
publicly reachable, so getTargetVersion() always failed with "Could not read
the target repository version".
- getDispatchConfig() hardcoded the same repository and ignored
GITHUB_UPDATE_REPO, so the configured installation repository was unused.
- dispatchUpdateWorkflow() looked the workflow up by the display name
"Update Mailflare", but the shipped workflow is named "Dashboard Update".
find() returned undefined and the call threw a TypeError on item.id.
Point the version check at this repository, read GITHUB_UPDATE_REPO (failing
with a clear message when unset), and dispatch by workflow file name, which
GitHub accepts in place of the numeric id. That removes the dependency on the
workflow's display name entirely.
Also honour GITHUB_UPDATE_REF through the existing getDispatchRef() helper
instead of hardcoding "main" twice.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>