init
This commit is contained in:
parent
410f4c3abc
commit
f4476af611
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user