Skip to content

Commit 944e082

Browse files
committed
Fix logic for counting release bundles
1 parent aa6ab46 commit 944e082

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/get-latest-release-bundle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
export JFROG_CLI_LOG_LEVEL=DEBUG
4848
# Note that setting JF_PROJECT from above step doesn't apply to this command for some reason
4949
release_bundle_json_data=$(jf rt curl "/api/v2/release_bundle/records/${JFROG_RELEASE_BUNDLE_NAME}?project=${JFROG_PROJECT}&order_by=created")
50-
release_bundle_count=$(jq -r '.release_bundles | length')
50+
release_bundle_count=$(echo "$release_bundle_json_data" | jq -r '.release_bundles | length')
5151
if [[ $release_bundle_count -eq 0 ]]; then
5252
exit 0
5353
fi

0 commit comments

Comments
 (0)