From dca33f0afb922035f5c4843c996ff0ca4f278aba Mon Sep 17 00:00:00 2001 From: Jeffery Date: Thu, 25 Jun 2026 16:05:36 +0000 Subject: [PATCH] =?UTF-8?q?fix(action.yml):=20=E4=BF=AE=E6=AD=A3=E9=87=8B?= =?UTF-8?q?=E5=87=BA=E5=90=8D=E7=A8=B1=E5=8F=83=E6=95=B8=E7=B5=84=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 4291181..0cf9d0b 100644 --- a/action.yml +++ b/action.yml @@ -11,15 +11,23 @@ runs: - name: 版本號計算 id: version-calculate uses: https://gitea.jsc.idv.tw/docker-actions/calculate-version@${{ vars.ACTION_CALCULATE_VERSION }} + - name: 組合釋出參數 + id: release-params + shell: bash + run: | + repository="${{ gitea.repository }}" + version="v${{ steps.version-calculate.outputs.version }}" + repository_name="${repository##*/}" + { + echo "name=${repository_name} ${version}" + echo "tag_name=${version}" + } >> "$GITHUB_OUTPUT" - name: 釋出並標註成品版本 uses: akkuman/gitea-release-action@${{ vars.ACTION_GITEA_RELEASE_VERSION }} - env: - NAME: ${{ gitea.repository##*/ }} - VERSION: v${{ steps.version-calculate.outputs.version }} with: - name: "$NAME $VERSION" - tag_name: "$VERSION" + name: ${{ steps.release-params.outputs.name }} + tag_name: ${{ steps.release-params.outputs.tag_name }} target_commitish: ${{ gitea.ref }} files: ${{ inputs.files }} - name: 清理舊成品 - uses: https://gitea.jsc.idv.tw/docker-actions/release-cleanup@${{ vars.ACTION_RELEASE_CLEANUP_VERSION }} \ No newline at end of file + uses: https://gitea.jsc.idv.tw/docker-actions/release-cleanup@${{ vars.ACTION_RELEASE_CLEANUP_VERSION }} -- 2.53.0