refactor(release-tag-version): 統一版本計算步驟 id
This commit is contained in:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user