Skip to content

Commit 4181356

Browse files
authored
ci: Harden the get changelog func (#2699)
1 parent d035c76 commit 4181356

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/get-new-changelogs.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ get_changelog_url() {
1818
# Gets all the new changelogs from the updated components version.
1919
get_changelog_urls() {
2020
while IFS= read -r updated_version; do
21-
read -r component version <<< "${updated_version}"
21+
# Skip any empty lines
22+
[[ -z "$updated_version" ]] && continue
23+
24+
# Split into component and version
25+
read -r component version <<< "$updated_version"
26+
2227
case "${component}" in
2328
alertmanager)
2429
get_changelog_url "prometheus/alertmanager" "${version}"
@@ -50,6 +55,9 @@ get_changelog_urls() {
5055
configmapReload)
5156
get_changelog_url "jimmidyson/configmap-reload" "${version}"
5257
;;
58+
pyrra)
59+
get_changelog_url "pyrra-dev/pyrra" "${version}"
60+
;;
5361
*)
5462
echo "Unknown component ${component} updated"
5563
exit 1

0 commit comments

Comments
 (0)