Repository navigation
Commit 06c5f8f
fix(release): run the deduper from a path that survives the checkout (#211)
The step failed on its first real run:
Error: Cannot find module '.../scripts/dedupe-changelog.mjs'
It checks out the release branch, and that branch is cut from whatever main was
when release-please first opened the pull request - which predates the script.
So it checked out a tree without its own script in it.
Copy the script to $RUNNER_TEMP before touching the working tree, and run it
from there.
Rehearsing the step locally against the real release branch also turned up a
second failure the first run never reached: `git checkout -` aborts with "Your
local changes would be overwritten" when CHANGELOG.md is still dirty. It only
switched back out of tidiness - step 2 works entirely through the API, with the
script already copied out - so it no longer switches back at all.
Verified by running the step verbatim against release-please--branches--main:
11 duplicates removed, commit created, exit 0.
Co-authored-by: Claude <noreply@anthropic.com>1 parent f431962 commit 06c5f8f
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
93 | | - | |
| 101 | + | |
94 | 102 | | |
95 | 103 | | |
96 | 104 | | |
97 | 105 | | |
98 | 106 | | |
99 | 107 | | |
100 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
101 | 112 | | |
102 | 113 | | |
103 | 114 | | |
| |||
108 | 119 | | |
109 | 120 | | |
110 | 121 | | |
111 | | - | |
| 122 | + | |
112 | 123 | | |
113 | 124 | | |
0 commit comments