Merge pull request 'test: 將版本檔案放到共用資料夾' (#36) from develop into master
Some checks failed
/ CD > 發布專案 (push) Successful in 1s
/ TEST > 計算版本號 (push) Failing after 1s
/ TEST > 測試專案 (push) Has been skipped

Reviewed-on: #36
This commit was merged in pull request #36.
This commit is contained in:
2026-03-20 09:12:29 +00:00
2 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ jobs:
- name: 發布專案
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
with:
tag_name: "v0.1.8"
tag_name: "v0.1.9"
- name: 清理舊版本 (保留最新2個)
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }}
with:
@@ -25,7 +25,7 @@ jobs:
version: ${{ steps.version.outputs.version }}
steps:
- name: 計算版本號
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.1.8
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.1.9
- name: 輸出版本號
id: version
run: cat VERSION.txt >> $GITHUB_OUTPUT

View File

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