Skip to content

Commit d9d29e6

Browse files
committed
fix
1 parent 26394a6 commit d9d29e6

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/nightly-release-gateway.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
sed -i.bak "s/version = \"${CURRENT_VERSION}\"/version = \"${NIGHTLY_VERSION}\"/" bindings/python/pyproject.toml
7676
7777
# Verify the change
78-
cat bindings/python/pyproject.toml | grep "^version"
78+
grep "^version" < bindings/python/pyproject.toml
7979
shell: bash
8080

8181
- name: Install twine and tomli
@@ -161,7 +161,7 @@ jobs:
161161
sed -i "s/version = \"${CURRENT_VERSION}\"/version = \"${NIGHTLY_VERSION}\"/" bindings/python/pyproject.toml
162162
163163
# Verify the change
164-
cat bindings/python/pyproject.toml | grep "^version"
164+
grep "^version" < bindings/python/pyproject.toml
165165
166166
- name: Build SDist
167167
uses: PyO3/maturin-action@v1

.github/workflows/release-docker-amd-nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Build and Push
4040
run: |
41-
version=$(cat python/sglang/version.py | cut -d'"' -f2)
41+
version=$(cut -d'"' -f2 < python/sglang/version.py)
4242
echo "Version: ${version}"
4343
4444
if [ "${{ matrix.gpu_arch }}" = "gfx942" ]; then
@@ -85,7 +85,7 @@ jobs:
8585
run: |
8686
set -euxo pipefail
8787
88-
version=$(cat python/sglang/version.py | cut -d'"' -f2)
88+
version=$(cut -d'"' -f2 < python/sglang/version.py)
8989
echo "Version: ${version}"
9090
9191
if [ "${{ matrix.gpu_arch }}" = "gfx942" ]; then

.github/workflows/release-docker-amd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Build and Push
3030
run: |
31-
version=$(cat python/sglang/version.py | cut -d'"' -f2)
31+
version=$(cut -d'"' -f2 < python/sglang/version.py)
3232
echo "Version: ${version}"
3333
3434
if [ "${{ matrix.gpu_arch }}" = "gfx942" ]; then

.github/workflows/release-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Build and Push AMD64
4949
run: |
50-
version=$(cat python/sglang/version.py | cut -d'"' -f2)
50+
version=$(cut -d'"' -f2 < python/sglang/version.py)
5151
tag=v${version}-cu129-amd64
5252
5353
docker buildx build \
@@ -89,7 +89,7 @@ jobs:
8989

9090
- name: Build and Push ARM64
9191
run: |
92-
version=$(cat python/sglang/version.py | cut -d'"' -f2)
92+
version=$(cut -d'"' -f2 < python/sglang/version.py)
9393
tag=v${version}-cu129-arm64
9494
9595
docker buildx build \

.github/workflows/release-whl-kernel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
id: set_tag_name
7676
run: |
7777
if [ -z "${{ inputs.tag_name }}" ]; then
78-
TAG_NAME="v$(cat sgl-kernel/python/sgl_kernel/version.py | cut -d'"' -f2)"
78+
TAG_NAME="v$(cut -d'"' -f2 < sgl-kernel/python/sgl_kernel/version.py)"
7979
echo "tag_name=$TAG_NAME" >> "$GITHUB_OUTPUT"
8080
else
8181
echo "tag_name=${{ inputs.tag_name }}" >> "$GITHUB_OUTPUT"
@@ -160,7 +160,7 @@ jobs:
160160
id: set_tag_name
161161
run: |
162162
if [ -z "${{ inputs.tag_name }}" ]; then
163-
TAG_NAME="v$(cat sgl-kernel/python/sgl_kernel/version.py | cut -d'"' -f2)"
163+
TAG_NAME="v$(cut -d'"' -f2 < sgl-kernel/python/sgl_kernel/version.py)"
164164
echo "tag_name=$TAG_NAME" >> "$GITHUB_OUTPUT"
165165
else
166166
echo "tag_name=${{ inputs.tag_name }}" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)