From 559cb4531255106f7fdd03693424125362c919f4 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 20 Mar 2026 17:38:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=B9=E5=9B=9E=E6=AA=94=E6=A1=88?= =?UTF-8?q?=E7=9A=84=E6=96=B9=E5=BC=8F=E7=B9=BC=E7=BA=8C=E6=83=B3=E6=80=8E?= =?UTF-8?q?=E9=BA=BC=E8=99=95=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/master.yaml | 12 ++++++++++-- entrypoint.sh | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/master.yaml index b31cbcb..0f24e2c 100644 --- a/.gitea/workflows/master.yaml +++ b/.gitea/workflows/master.yaml @@ -10,7 +10,7 @@ jobs: - name: 發布專案 uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }} with: - tag_name: "v0.2.0" + tag_name: "v0.2.1" - name: 清理舊版本 (保留最新2個) uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }} with: @@ -25,8 +25,16 @@ jobs: version: ${{ steps.version.outputs.version }} steps: - name: 計算版本號 + uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.2.1 + - name: 顯示工作目錄 + run: | + echo "工作目錄: $(pwd)" + ls -la $(pwd) + working-directory: ${{ github.workspace }} + - name: 輸出版本號 id: version - uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.2.0 + run: cat VERSION.txt >> $GITHUB_OUTPUT + working-directory: ${{ github.workspace }} test: name: "TEST > 測試專案" runs-on: docker diff --git a/entrypoint.sh b/entrypoint.sh index f2949ca..8da141c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -70,5 +70,5 @@ PATCH=$((PATCH + 1)) # 組合新的版本號,並顯示 NEW_VERSION="$MAJOR.$MINOR.$PATCH" && echo "NEW_VERSION=$NEW_VERSION" -# 將版本輸出到 GITHUB_OUTPUT -echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT" \ No newline at end of file +# 將版本輸出到環境變數 +echo "version=$NEW_VERSION" > /workspace/VERSION.txt \ No newline at end of file -- 2.48.1