From 919886cb552a2a96f85759f4ba806b1e4294cd6b Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 20 Mar 2026 16:16:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BE=9E=E5=B7=A5=E5=85=B7=E5=A4=96?= =?UTF-8?q?=E9=83=A8=E5=8F=96=E5=BE=97=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/master.yaml | 4 ++-- action.yaml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/master.yaml index 7279600..596b75b 100644 --- a/.gitea/workflows/master.yaml +++ b/.gitea/workflows/master.yaml @@ -12,10 +12,10 @@ jobs: - name: 發布專案 uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }} with: - tag_name: "v0.0.5" + tag_name: "v0.0.6" - name: 計算版本號 id: version - uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.0.4 + uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.0.5 - name: 清理舊版本 (保留最新2個) uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }} with: diff --git a/action.yaml b/action.yaml index 85fd278..f04dc4c 100644 --- a/action.yaml +++ b/action.yaml @@ -1,6 +1,9 @@ name: 'CALCULATE VERSION' description: '計算版本號' author: 'Jeffery' +inputs: + RUNNER_TOKEN: + description: 'Gitea Runner 用來存取的 Token,ex: ${{ secrets.RUNNER_TOKEN }}' outputs: VERSION: description: '計算出的新版本號' @@ -11,4 +14,4 @@ runs: env: GITEA_SERVER_URL: ${{ gitea.server_url }} GITEA_REPOSITORY: ${{ gitea.repository }} - RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }} \ No newline at end of file + RUNNER_TOKEN: ${{ inputs.RUNNER_TOKEN }} \ No newline at end of file -- 2.48.1