From 6ff37643b67d31fe5726ca7d54d67c5e4006278f Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 20 Mar 2026 16:41:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?test:=20=E5=98=97=E8=A9=A6=E6=8E=92?= =?UTF-8?q?=E9=99=A4=E6=B2=92=E6=9C=89=E8=B3=87=E6=96=99=E5=A4=BE=E7=9A=84?= =?UTF-8?q?=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/master.yaml | 13 ++++++++----- entrypoint.sh | 3 +++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/master.yaml index cf761d8..cbc5f6e 100644 --- a/.gitea/workflows/master.yaml +++ b/.gitea/workflows/master.yaml @@ -6,8 +6,6 @@ jobs: cd: name: "CD > 發布專案" runs-on: docker - env: - RUNNER_TOOL_CACHE: /toolcache steps: - name: 發布專案 uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }} @@ -16,11 +14,16 @@ jobs: - name: 計算版本號 id: version uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.1.1 - - name: 顯示資訊 - run: echo ${{ needs.version.outputs.version }} - name: 清理舊版本 (保留最新2個) uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }} with: gitea-server: ${{ gitea.server_url }} repository: ${{ gitea.repository }} - token: ${{ secrets.GITEA_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITEA_TOKEN }} + test: + needs: cd + name: "TEST > 測試專案" + runs-on: docker + steps: + - name: 顯示版本號 + run: echo ${{ needs.cd.outputs.version }} \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 83638cb..cf9c246 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 \ No newline at end of file From ccd4ef297e062b984cf77dd9c18705798ea6b5f4 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 20 Mar 2026 16:42:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E8=99=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/master.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/master.yaml index cbc5f6e..9165be0 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.1.1" + tag_name: "v0.1.2" - name: 計算版本號 id: version uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.1.1