Skip to content

Commit f640d49

Browse files
committed
fix: use upstream base version in release notes
1 parent ae3767e commit f640d49

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish-vim.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@ jobs:
6363
shell: bash
6464
run: |
6565
VERSION="${{ inputs.version }}"
66+
BASE=$(echo "$VERSION" | sed -E 's/-(vim|ocv)\..*$//')
6667
DIST="packages/opencode/dist/release"
6768
if gh release view "v$VERSION" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
6869
gh release upload "v$VERSION" --repo "$GITHUB_REPOSITORY" --clobber "$DIST"/*
69-
gh release edit "v$VERSION" --repo "$GITHUB_REPOSITORY" --title "ocv v$VERSION" --notes "Based on opencode v$VERSION with vim mode"
70+
gh release edit "v$VERSION" --repo "$GITHUB_REPOSITORY" --title "ocv v$VERSION" --notes "Based on opencode v$BASE"
7071
else
7172
gh release create "v$VERSION" \
7273
--title "ocv v$VERSION" \
73-
--notes "Based on opencode v$VERSION with vim mode" \
74+
--notes "Based on opencode v$BASE" \
7475
--repo "$GITHUB_REPOSITORY" \
7576
"$DIST"/*
7677
fi

0 commit comments

Comments
 (0)