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