Skip to content

Commit def097f

Browse files
committed
refac(ci) move debug oas commit related logging
1 parent 5059749 commit def097f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/sdk-create-pr.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,21 +120,22 @@ for service_path in ${work_dir}/sdk_to_push/services/*; do
120120
fi
121121

122122
# write OAS commit hash of service into source tree, create compare link
123+
echo ">> Updating OAS commit for $service"
123124
old_commit=""
124125
if [[ -f "services/${service}/oas_commit" ]]; then
125126
old_commit=$(cat "services/${service}/oas_commit")
127+
echo "old commit: ${old_commit}"
126128
fi
127-
echo "old commit: ${old_commit}"
128129
new_commit=""
129130
if [[ -f "${ROOT_DIR}/oas/oas_commits" ]]; then
130131
new_commit=$(grep "${service}=" "${ROOT_DIR}/oas/oas_commits" | cut -d = -f 2)
132+
echo "new commit: ${new_commit}"
131133
fi
132-
echo "new commit: ${new_commit}"
133134
compare_link=""
134135
if [[ -n "${old_commit}" ]] && [[ -n "${new_commit}" ]]; then
135136
compare_link=https://github.com/stackitcloud/stackit-api-specifications/compare/${old_commit}...${new_commit}
137+
echo "compare link: ${compare_link}"
136138
fi
137-
echo "compare link: ${compare_link}"
138139
if [[ -n "${new_commit}" ]]; then
139140
echo "${new_commit}" > "services/${service}/oas_commit"
140141
fi

0 commit comments

Comments
 (0)