feat: 從不同的工作目錄取得版本檔案 #38

Merged
jiantw83 merged 1 commits from develop into master 2026-03-20 09:21:03 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit dfaa8530e1 - Show all commits

View File

@@ -28,7 +28,8 @@ jobs:
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.1.9
- name: 輸出版本號
id: version
run: cat $GITHUB_WORKSPACE/VERSION.txt >> $GITHUB_OUTPUT
run: cat VERSION.txt >> $GITHUB_OUTPUT
workspace: ${{ github.workspace }}
test:
name: "TEST > 測試專案"
runs-on: docker

View File

@@ -71,4 +71,4 @@ PATCH=$((PATCH + 1))
NEW_VERSION="$MAJOR.$MINOR.$PATCH" && echo "NEW_VERSION=$NEW_VERSION"
# 將版本輸出到環境變數
echo "version=$NEW_VERSION" > "$GITHUB_WORKSPACE/VERSION.txt"
echo "version=$NEW_VERSION" > VERSION.txt