refactor(release-tag-version): 統一版本計算步驟 id

This commit is contained in:
2026-06-26 15:12:37 +00:00
parent 21470d1a89
commit 49bb8c2dc4
+4 -4
View File
@@ -18,17 +18,17 @@ runs:
using: 'composite'
steps:
- name: 版本號計算
id: version-calculate
id: calculate-version
uses: https://gitea.jsc.idv.tw/docker-actions/calculate-version@${{ vars.ACTION_CALCULATE_VERSION }}
with:
is_debug: ${{ inputs.is_debug }}
- name: 組合釋出參數
id: release-params
if: ${{ steps.version-calculate.outputs.version != '' }}
if: ${{ steps.calculate-version.outputs.version != '' }}
run: |
repository="${{ gitea.repository }}"
version_value="${{ steps.version-calculate.outputs.version }}"
version_value="${{ steps.calculate-version.outputs.version }}"
if [[ ! "$version_value" =~ ^[0-9]+(\.[0-9]+)*([._-][0-9A-Za-z]+)*$ ]]; then
echo "version-calculate output version has invalid format: ${version_value}" >&2
@@ -40,7 +40,7 @@ runs:
shell: bash
- name: 檢查版本號輸出
if: ${{ steps.version-calculate.outputs.version == '' }}
if: ${{ steps.calculate-version.outputs.version == '' }}
run: |
echo "version-calculate output version is empty" >&2
exit 1