diff --git a/.github/workflows/outdated-track.yml b/.github/workflows/outdated-track.yml index 0f59235..12867c5 100644 --- a/.github/workflows/outdated-track.yml +++ b/.github/workflows/outdated-track.yml @@ -23,8 +23,9 @@ jobs: pip install --requirement scripts/make_release_requirements.txt outdated="$(pip list --outdated --format json | jq)" outdated_count="$(echo "$outdated" | jq 'length')" - echo "${outdated}" | - jq "[{\"outdated_count\":\"${outdated_count}\"}] + ." | + outdated="$(echo "${outdated}" | jq "[{\"outdated_count\":\"${outdated_count}\"}] + .")" + outdated="$(echo "${outdated}" | jq 'map(if .latest_filetype == "wheel" then del(.latest_filetype) else . end)')" + echo -e "${outdated}" | npx --yes prettier --parser jsonc --trailing-comma all > scripts/make_release_requirements.json git diff --color changes="$(git diff)"