Skip to content

Automation / Label Merged PR Release Target hard-fails on schedule when repo has no release tags (e.g. fresh fork) #9533

Closed

Description

@kagura-chen

The Automation / Label Merged PR Release Target workflow (label-merged-pr-release-target.yaml) hard-fails on its scheduled runs (17 */6 * * *) whenever the repo has no strict semver release tags yet.

Error:

Error: No strict semver release tags were found
    at loadReleaseTags ...
##[error]Unhandled error: Error: No strict semver release tags were found

Repro: run the workflow on any fork/checkout of the repo that has zero vX.Y.Z tags (no releases published yet). It fails 100% of the time on the schedule path; only the pull_request_target path survives because it short-circuits before the empty list is fatal.

Impact: repeated red CI on forks and any pre-first-release repo. Observed 5 consecutive scheduled failures in a single day on a fork.

Suggested fix: in the schedule/reconcile path, treat an empty release-tag list as "nothing to reconcile" — log an info message and exit 0 — instead of throwing. loadReleaseTags() can return [] and reconcileReleaseTargets can no-op on it, mirroring the existing graceful no-target handling in the PR path.

Activity

  1. added
    area: ci
    on Aug 18, 2026
  2. added theissue type on Aug 18, 2026
  3. added a commit that references this issue on Aug 19, 2026
    fde9909
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ci

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions