Skip to content

Commit af1013a

Browse files
fix: strip v prefix from opencode version in Docker workflow
1 parent 2883027 commit af1013a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
id: versions
2020
run: |
2121
UV_VERSION=$(git ls-remote --tags --sort=-v:refname https://github.com/astral-sh/uv.git 'refs/tags/[0-9]*' | head -1 | sed 's/.*refs\/tags\///')
22-
OPENCODE_VERSION=$(curl -s https://api.github.com/repos/anomalyco/opencode/releases/latest | sed -n 's/.*"tag_name": *"\([^"]*\)".*/\1/p')
22+
OPENCODE_VERSION=$(curl -s https://api.github.com/repos/anomalyco/opencode/releases/latest | sed -n 's/.*"tag_name": *"v\([^"]*\)".*/\1/p')
2323
echo "uv=${UV_VERSION}" >> $GITHUB_OUTPUT
2424
echo "opencode=${OPENCODE_VERSION}" >> $GITHUB_OUTPUT
2525
echo "Detected versions: uv=${UV_VERSION}, opencode=${OPENCODE_VERSION}"

0 commit comments

Comments
 (0)