init
This commit is contained in:
parent
0fa9ab2c70
commit
a41b0a8890
@ -10,7 +10,7 @@ spec:
|
||||
default: ""
|
||||
- name: ref
|
||||
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:
|
||||
- name: base
|
||||
description: Git-cloned source code
|
||||
@ -31,7 +31,7 @@ spec:
|
||||
|
||||
echo "🔍 Extracting tag from Git 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
|
||||
|
||||
OPENAPI_FILE="specs/${DOMAIN}/openapi.yaml"
|
||||
|
Loading…
x
Reference in New Issue
Block a user