|
60 | 60 |
|
61 | 61 | # write commit hash to oas_commits file, normalize name first to match service name in sdk-create-pr.sh, normalization |
62 | 62 | # occurs in go/java/python.sh when creating the SDK modules |
63 | | - service_normalzed=${service} |
64 | | - service_normalzed="${service_normalzed//-/}" # remove dashes |
65 | | - service_normalzed="${service_normalzed// /}" # remove empty spaces |
66 | | - service_normalzed="${service_normalzed//_/}" # remove underscores |
67 | | - service_normalzed=$(echo "${service_normalzed}" | tr '[:upper:]' '[:lower:]') # convert upper case letters to lower case |
68 | | - service_normalzed=$(echo "${service_normalzed}" | tr -d -c '[:alnum:]') # remove non-alphanumeric characters |
69 | | - echo "$service_normalzed=$(git rev-parse HEAD)" >> oas_commits |
70 | | - # To support initial integrations of the IaaS API in an Alpha state, we will temporarily use it to generate an IaaS Alpha SDK module |
71 | | - # This check can be removed once the IaaS API moves all endpoints to Beta |
72 | | - if [[ ${service_normalzed} == "iaas" ]]; then |
73 | | - echo "iaasalpha=$(git rev-parse HEAD)" >> oas_commits |
74 | | - fi |
75 | | - |
| 63 | + service_normalized=${service} |
| 64 | + service_normalized="${service_normalized//-/}" # remove dashes |
| 65 | + service_normalized="${service_normalized// /}" # remove empty spaces |
| 66 | + service_normalized="${service_normalized//_/}" # remove underscores |
| 67 | + service_normalized=$(echo "${service_normalized}" | tr '[:upper:]' '[:lower:]') # convert upper case letters to lower case |
| 68 | + service_normalized=$(echo "${service_normalized}" | tr -d -c '[:alnum:]') # remove non-alphanumeric characters |
| 69 | + echo "$service_normalized=$(git rev-parse HEAD)" >> oas_commits |
| 70 | + # To support initial integrations of the IaaS API in an Alpha state, we will temporarily use it to generate an IaaS Alpha SDK module |
| 71 | + # This check can be removed once the IaaS API moves all endpoints to Beta |
| 72 | + if [[ ${service_normalized} == "iaas" ]]; then |
| 73 | + echo "iaasalpha=$(git rev-parse HEAD)" >> oas_commits |
| 74 | + fi |
| 75 | + |
76 | 76 | cd - >/dev/null |
77 | 77 |
|
78 | 78 | # Prioritize GA over Beta over Alpha versions |
|
0 commit comments