Skip to content

Commit 1f3b578

Browse files
committed
fix?: ci
1 parent f0ba969 commit 1f3b578

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ jobs:
154154
version=$(pnpm semver ${{ env.version }} -i)-nightly.$(git rev-list --count "${{ env.version_sha }}"..HEAD)
155155
echo "version=$version" >> $GITHUB_ENV
156156
157-
jq ".info.version = \"${{ env.version }}\"" dist/openapi.json > dist/.openapi.json && mv dist/.openapi.json dist/openapi.json
158-
yq eval ".info.version = \"${{ env.version }}\"" -i dist/openapi.yaml
157+
jq --arg v "$version" '.info.version = $v' dist/openapi.json > dist/.openapi.json && mv dist/.openapi.json dist/openapi.json
158+
yq eval ".info.version = \"$version\"" -i dist/openapi.yaml
159159
160160
gh release create v${{ env.version }} dist/* \
161161
--generate-notes \

0 commit comments

Comments
 (0)