Commit 3792be0
fix(ci): restore detached HEAD after benchmarks branch bootstrap
actions/checkout@v4 leaves the runner in detached HEAD state. After
git checkout --orphan benchmarks, "git checkout -" has no named branch
to return to and fails with "pathspec '-' did not match any file(s)".
Save the SHA before the orphan checkout and restore it explicitly.
Fixes benchmark (8.4, plugin) and benchmark (9.7, component) failures
in CI run 26690542748.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 15658c8 commit 3792be0
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
270 | | - | |
| 271 | + | |
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
| |||
0 commit comments