Skip to content

Commit e3a835d

Browse files
committed
fix: 优化 VSIX 文件检查逻辑
- 修改 VSIX 文件存在性检查,使用更可靠的方式获取文件名 - 更新文件列表输出格式,提供更清晰的文件信息
1 parent a7baa11 commit e3a835d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pr-check.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,15 @@ jobs:
159159
- name: Verify VSIX
160160
run: |
161161
# 检查VSIX文件是否存在
162-
if [ ! -f "*.vsix" ]; then
162+
set -e
163+
VSIX_FILE=$(ls *.vsix 2>/dev/null || true)
164+
if [ -z "$VSIX_FILE" ]; then
163165
echo "❌ VSIX file not found"
164166
exit 1
165167
fi
166168
167169
# 列出VSIX文件
168-
ls -la *.vsix
170+
ls -lh $VSIX_FILE
169171
echo "✅ VSIX file created successfully"
170172
171173
- name: Upload build artifacts

0 commit comments

Comments
 (0)