From 5fc06d52e528efda60772c52386bd30b33c707ee Mon Sep 17 00:00:00 2001 From: Jeffery Date: Thu, 25 Jun 2026 16:15:14 +0000 Subject: [PATCH] =?UTF-8?q?fix(action.yml):=20=E9=81=BF=E5=85=8D=E7=A9=BA?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E7=94=A2=E7=94=9F=E9=8C=AF=E8=AA=A4=E6=A8=99?= =?UTF-8?q?=E7=B1=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 0cf9d0b..580c3d9 100644 --- a/action.yml +++ b/action.yml @@ -13,15 +13,21 @@ runs: 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 }}" + 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" + shell: bash - name: 釋出並標註成品版本 uses: akkuman/gitea-release-action@${{ vars.ACTION_GITEA_RELEASE_VERSION }} with: