We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b9857b commit 6c935b3Copy full SHA for 6c935b3
1 file changed
.github/workflows/deploy-supplier-api.yaml
@@ -168,9 +168,9 @@ jobs:
168
fi
169
170
if [[ "$is_release" == "true" ]]; then
171
- oas_asset="api-oas-specification-${apim_environment}-${source_value}.zip"
172
- if ! echo "$release_json" | jq -r '.assets[].name' | grep -qx "$oas_asset"; then
173
- echo "[ERROR] Release '$source_value' does not contain required OAS asset '$oas_asset'."
+ oas_asset_pattern="^api-oas-specification-${apim_environment}-${source_value}-.*\.zip$"
+ if ! echo "$release_json" | jq -r '.assets[].name' | grep -qx "$oas_asset_pattern"; then
+ echo "[ERROR] Release '$source_value' does not contain required OAS asset matching pattern '$oas_asset_pattern'."
174
echo "Available assets:"
175
echo "$release_json" | jq -r '.assets[].name'
176
exit 1
0 commit comments