Add "setup" filter to content_is_present
This commit is contained in:
@@ -235,7 +235,7 @@ get_repos_names() {
|
||||
echo -n "." >&2
|
||||
branch_content=$(curl -s -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${gh_token}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/OCA/"${repo_name}"/contents\?ref\="${odoo_version}")
|
||||
|
||||
content_is_present=$(echo "${branch_content}" | jq -e 'any(arrays[]; .name | . == "README.md" or . == "LICENSE" or startswith(".") | not)')
|
||||
content_is_present=$(echo "${branch_content}" | jq -e 'any(arrays[]; .name | . == "README.md" or . == "LICENSE" or . == "setup" or startswith(".") | not)')
|
||||
|
||||
if [[ "${content_is_present}" == true ]]; then
|
||||
repos_names+=("${repo_name}")
|
||||
|
||||
Reference in New Issue
Block a user