This commit is contained in:
병준 박 2025-04-25 20:04:11 +00:00
parent 410f4c3abc
commit f4476af611

View File

@ -11,9 +11,6 @@ spec:
- name: ref
type: string
description: Full Git ref string (e.g., refs/tags/v0.2.0)
- name: specDomain
type: string
default: ""
workspaces:
- name: base
description: Git-cloned source code
@ -37,7 +34,7 @@ spec:
DOMAIN_FROM_REF=$(echo "$FULL_REF" | awk -F'[/-]' '{print $2}')
TAG_FROM_REF=$(basename "$FULL_REF") # → 0.2.0
OPENAPI_FILE="specs/$(params.specDomain)/openapi.yaml"
OPENAPI_FILE="specs/${DOMAIN_FROM_REF}/openapi.yaml"
echo "📄 Reading version from openapi.yaml of ${OPENAPI_FILE}..."
VERSION=$(yq '.info.version' "$OPENAPI_FILE")
TAG_FROM_OPENAPI="${VERSION}"