This commit is contained in:
병준 박 2025-04-25 20:48:48 +00:00
parent 0fa9ab2c70
commit a41b0a8890

View File

@ -10,7 +10,7 @@ spec:
default: "" default: ""
- name: ref - name: ref
type: string type: string
description: Full Git ref string (e.g., refs/tags/domain-request/0.0.1) description: Full Git ref string (e.g., refs/tags/v0.2.0)
workspaces: workspaces:
- name: base - name: base
description: Git-cloned source code description: Git-cloned source code
@ -31,7 +31,7 @@ spec:
echo "🔍 Extracting tag from Git ref..." echo "🔍 Extracting tag from Git ref..."
FULL_REF="$(params.ref)" FULL_REF="$(params.ref)"
DOMAIN=$(echo "$FULL_REF" | awk -F'/' '{print $3}' | awk -F'-' '{print $2}') DOMAIN=$(echo "$FULL_REF" | awk -F'[/-]' '{print $2}')
TAG_FROM_REF=$(basename "$FULL_REF") # → 0.2.0 TAG_FROM_REF=$(basename "$FULL_REF") # → 0.2.0
OPENAPI_FILE="specs/${DOMAIN}/openapi.yaml" OPENAPI_FILE="specs/${DOMAIN}/openapi.yaml"