Skip to content

Commit cfffba5

Browse files
authored
fix(release): make the --local scan clone see the repointed release branch (#66)
release-pr's --local mode git-clones from --repo-url into /tmp, so the ref-repoint in the workspace never reaches the scan — on a quiet default branch it collects 0 commits and silently skips the release PR (seen 2026-07-09: promotes landed on next but no new release PR opened). Rewrite the repo URL to the workspace so the CLI clones the repointed refs; API PR-creation still parses owner/repo from the URL string.
1 parent c48f805 commit cfffba5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ jobs:
8282
# still created against main via the API.
8383
git branch -f main HEAD 2>/dev/null || true
8484
git update-ref refs/remotes/origin/main HEAD
85+
# --local mode clones from --repo-url — a FRESH GitHub clone whose
86+
# refs ignore the repoint above (it only rewrites this workspace), so
87+
# the scan saw 0 commits on a quiet master and silently skipped the
88+
# release PR (2026-07-09). Rewrite the URL to this workspace so the
89+
# CLI clones the repointed refs; API PR-creation still parses
90+
# owner/repo from the URL string.
91+
git config --global url."file://${GITHUB_WORKSPACE}".insteadOf "${{ github.repositoryUrl }}"
8592
8693
OUTPUT=$(npx release-please "${ARGS[@]}" 2>&1) || true
8794
echo "$OUTPUT"

0 commit comments

Comments
 (0)