Add "setup" filter to content_is_present

This commit is contained in:
2024-02-05 15:09:47 +01:00
parent 01521e632e
commit 5aa9f60e86

View File

@@ -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}")