From f03aa4ba23d7570957fd28fa86d5895d5752af75 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 20 Mar 2026 17:06:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E5=A4=96=E9=83=A8=E6=9B=B8?= =?UTF-8?q?=E5=87=BA=E7=89=88=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 | 6 ++++-- action.yaml | 15 +-------------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/master.yaml index 9f7b24d..5f4172d 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.6" + tag_name: "v0.1.7" - name: 清理舊版本 (保留最新2個) uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }} with: @@ -25,8 +25,10 @@ jobs: version: ${{ steps.version.outputs.version }} steps: - name: 計算版本號 + uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.1.7 + - name: 輸出版本號 id: version - uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.1.6 + run: echo "VERSION.txt" >> $GITHUB_OUTPUT test: name: "TEST > 測試專案" runs-on: docker diff --git a/action.yaml b/action.yaml index 4d02b9d..6588104 100644 --- a/action.yaml +++ b/action.yaml @@ -1,23 +1,10 @@ name: 'CALCULATE VERSION' description: '計算版本號' author: 'Jeffery' -# inputs: -# RUNNER_TOKEN: -# description: 'Gitea Runner 用來存取的 Token,ex: ${{ secrets.RUNNER_TOKEN }}' -# required: true -outputs: - version: - description: '計算出的新版本號' - value: ${{ steps.calculate.outputs.version }} runs: using: 'docker' image: 'Dockerfile' env: GITEA_SERVER_URL: ${{ gitea.server_url }} GITEA_REPOSITORY: ${{ gitea.repository }} - RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }} - using: 'composite' - steps: - - name: 將檔案寫到輸出 - id: calculate - run: echo "VERSION.txt" >> $GITHUB_OUTPUT \ No newline at end of file + RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }} \ No newline at end of file -- 2.48.1