Skip to content

Commit

Permalink
Skip empty ops-files
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoster committed Feb 27, 2018
1 parent 596e57c commit 6367179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/tasks/generate-release-notes/task
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ touch ${custom_notes}
cp ${custom_notes} ${notes}

get_releases() {
non_unique_releases=$(bosh int <(echo "releases: []") -o <(spruce json <(echo -e "ops:\n$(find ops -name '*.yml' -exec bosh int {} \;)") | jq '.ops | map(select(.path | contains("/releases")))'))
non_unique_releases=$(bosh int <(echo "releases: []") -o <(spruce json <(echo -e "ops:\n$(find ops -name '*.yml' -exec bosh int {} \; | grep -v -E '^null')") | jq '.ops | map(select(.path | contains("/releases")))'))
spruce json <(echo -e "${non_unique_releases}") | jq -c -r -M '.releases | sort_by(.name) | unique_by(.name) | .[]'
}

Expand Down

0 comments on commit 6367179

Please sign in to comment.