From 8704422b39409848c69f77cd06f7f917d6676c2c Mon Sep 17 00:00:00 2001 From: Jeffery Date: Thu, 25 Jun 2026 16:22:09 +0000 Subject: [PATCH] =?UTF-8?q?fix(action.yml):=20=E6=94=B9=E7=94=A8=20workflo?= =?UTF-8?q?w=20=E6=A2=9D=E4=BB=B6=E6=AA=A2=E6=9F=A5=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E8=BC=B8=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/action.yml b/action.yml index 580c3d9..f5523c7 100644 --- a/action.yml +++ b/action.yml @@ -13,20 +13,18 @@ runs: uses: https://gitea.jsc.idv.tw/docker-actions/calculate-version@${{ vars.ACTION_CALCULATE_VERSION }} - name: 組合釋出參數 id: release-params + if: ${{ steps.version-calculate.outputs.version != '' }} run: | repository="${{ gitea.repository }}" version_value="${{ steps.version-calculate.outputs.version }}" - if [ -z "$version_value" ]; then - echo "version-calculate output version is empty" >&2 - exit 1 - fi - - version="v${version_value}" - repository_name="${repository##*/}" - { - echo "name=${repository_name} ${version}" - echo "tag_name=${version}" - } >> "$GITHUB_OUTPUT" + echo "name=${repository##*/} v${version_value}" >> "$GITHUB_OUTPUT" + echo "tag_name=v${version_value}" >> "$GITHUB_OUTPUT" + shell: bash + - name: 檢查版本號輸出 + if: ${{ steps.version-calculate.outputs.version == '' }} + run: | + echo "version-calculate output version is empty" >&2 + exit 1 shell: bash - name: 釋出並標註成品版本 uses: akkuman/gitea-release-action@${{ vars.ACTION_GITEA_RELEASE_VERSION }} -- 2.53.0