test: 嘗試排除沒有資料夾的問題

This commit is contained in:
Jeffery
2026-03-20 16:41:49 +08:00
parent 9a15897128
commit 6ff37643b6
2 changed files with 11 additions and 5 deletions

View File

@@ -70,5 +70,8 @@ PATCH=$((PATCH + 1))
# 組合新的版本號
NEW_VERSION="$MAJOR.$MINOR.$PATCH"
# 確保 GITHUB_OUTPUT 檔案的目錄存在
mkdir -p "$(dirname "$GITHUB_OUTPUT")"
# 將版本輸出到環境變數
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT