File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments