Skip to content

Commit 94ff4e5

Browse files
committed
fix error in release workflow
1 parent 799a376 commit 94ff4e5

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ jobs:
3131
- name: Check licenses and vulnerabilities
3232
run: make check
3333

34-
- name: Set version
34+
- name: Fetch tags
35+
run: |
36+
if [[ "${{ github.ref_type }}" != "tag" ]]; then
37+
git fetch --tags
38+
else
39+
echo "Skipping tag fetch - already on tag ${{ github.ref_name }}"
40+
fi
41+
3542
- name: Update package.json version
3643
run: |
3744
if [[ "${{ github.ref_type }}" == "tag" ]]; then
@@ -42,7 +49,7 @@ jobs:
4249
TAG_VERSION=$(echo "$LATEST_TAG" | sed 's/^v//')
4350
echo "Using latest tag: $LATEST_TAG"
4451
fi
45-
sed -i "s/\${VERSION}/$TAG_VERSION/g" server.json
52+
sed -i "s/\${VERSION}/$TAG_VERSION/g" cmd/sql-to-logsql/web/ui/package.json
4653
echo "Version: $TAG_VERSION"
4754
4855
- name: Run ui build

0 commit comments

Comments
 (0)