From 5ddf0baa2f833cc9e0752e78dce90356813b177d Mon Sep 17 00:00:00 2001 From: BAK BYEONG JUN Date: Fri, 25 Apr 2025 20:11:16 +0000 Subject: [PATCH] init --- tasks/openapi-version/task.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/openapi-version/task.yaml b/tasks/openapi-version/task.yaml index afc26d0..edbd365 100644 --- a/tasks/openapi-version/task.yaml +++ b/tasks/openapi-version/task.yaml @@ -17,7 +17,7 @@ spec: results: - name: specDoamin description: Extracted domain name (e.g. user) - - name: version + - name: specVersion description: Extracted project version (e.g. 0.2.0) steps: - name: verify-version @@ -31,10 +31,10 @@ spec: echo "🔍 Extracting tag from Git ref..." FULL_REF="$(params.ref)" - DOMAIN_FROM_REF=$(echo "$FULL_REF" | 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_FROM_REF}/openapi.yaml" + OPENAPI_FILE="specs/${DOMAIN}/openapi.yaml" echo "📄 Reading version from openapi.yaml of ${OPENAPI_FILE}..." VERSION=$(yq '.info.version' "$OPENAPI_FILE") TAG_FROM_OPENAPI="${VERSION}" @@ -49,5 +49,5 @@ spec: fi echo "✅ Tag and version match: $VERSION" - echo -n "$DOMAIN_FROM_REF" > /tekton/results/specDoamin - echo -n "$VERSION" > /tekton/results/version \ No newline at end of file + echo -n "$DOMAIN" > /tekton/results/specDoamin + echo -n "$VERSION" > /tekton/results/specVersion \ No newline at end of file