Skip to content

Commit b419234

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

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717

1818
- name: Checkout
1919
uses: actions/checkout@v5
20+
with:
21+
fetch-depth: '0'
22+
fetch-tags: 'true'
2023

2124
- name: Setup Go
2225
uses: actions/setup-go@v6
@@ -31,7 +34,14 @@ jobs:
3134
- name: Check licenses and vulnerabilities
3235
run: make check
3336

34-
- name: Set version
37+
- name: Fetch tags
38+
run: |
39+
if [[ "${{ github.ref_type }}" != "tag" ]]; then
40+
git fetch --tags
41+
else
42+
echo "Skipping tag fetch - already on tag ${{ github.ref_name }}"
43+
fi
44+
3545
- name: Update package.json version
3646
run: |
3747
if [[ "${{ github.ref_type }}" == "tag" ]]; then
@@ -42,7 +52,7 @@ jobs:
4252
TAG_VERSION=$(echo "$LATEST_TAG" | sed 's/^v//')
4353
echo "Using latest tag: $LATEST_TAG"
4454
fi
45-
sed -i "s/\${VERSION}/$TAG_VERSION/g" server.json
55+
sed -i "s/\${VERSION}/$TAG_VERSION/g" cmd/sql-to-logsql/web/ui/package.json
4656
echo "Version: $TAG_VERSION"
4757
4858
- name: Run ui build
@@ -73,6 +83,6 @@ jobs:
7383
uses: goreleaser/goreleaser-action@v6
7484
if: success() && startsWith(github.ref, 'refs/tags/')
7585
with:
76-
args: release --clean --verbose --timeout 60m -f .goreleaser.yaml
86+
args: release --clean --verbose --timeout 60m --skip=validate -f .goreleaser.yaml
7787
env:
7888
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)