Skip to content

Commit b8d7569

Browse files
lachlangroseclaude
andcommitted
fix: read LoopStructural manifest instead of releases/latest
releases/latest returned whichever release-please component (LoopStructural itself, loop_common, or loop_interpolation) was published last in a multi-component release batch, not necessarily the LoopStructural package — this produced a bad pin (LoopStructural~=loop-interpolation-v0.0.1) on the first run. .release-please-manifest.json maps package name to version unambiguously. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 7850418 commit b8d7569

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/bump-loopstructural-pin.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ jobs:
1818
- name: Get latest LoopStructural release
1919
id: latest
2020
run: |
21-
latest=$(curl -s https://api.github.com/repos/Loop3D/LoopStructural/releases/latest | jq -r .tag_name | sed 's/^v//')
21+
# LoopStructural is a release-please monorepo (LoopStructural itself,
22+
# plus loop_common/loop_interpolation sub-packages), so `releases/latest`
23+
# can return whichever component's release was published last, not
24+
# necessarily the LoopStructural package. Read the manifest instead —
25+
# it maps package name to version unambiguously.
26+
latest=$(curl -s https://raw.githubusercontent.com/Loop3D/LoopStructural/master/.release-please-manifest.json | jq -r '.["LoopStructural"]')
2227
echo "version=$latest" >> "$GITHUB_OUTPUT"
2328
2429
- name: Bump pins if minor version changed

0 commit comments

Comments
 (0)