From 22ec03b3e6af7a54795d04b0a0e4e385a7b654ce Mon Sep 17 00:00:00 2001 From: David Cermak Date: Tue, 17 Sep 2024 10:42:49 +0200 Subject: [PATCH] ci(common): Fix for components not published --- ci/detect_component_bump | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/detect_component_bump b/ci/detect_component_bump index 5b6b9ee5e1..cee363b146 100755 --- a/ci/detect_component_bump +++ b/ci/detect_component_bump @@ -22,7 +22,11 @@ if git log -1 -m --name-only --pretty="" | grep -q components/${comp}/idf_compon if [ $(git tag -l "$tag") ]; then echo "${comp}: version (${tag}) already exits" else + # skip components that do not have changelog + [ -f components/${comp}/CHANGELOG.md ] || continue + echo "${comp}: Component version has been updated to ${version}" + # creates release notes from the last entry (between first two "## sections") awk '/^## \[/{a++};{if(a==1){print}}' components/${comp}/CHANGELOG.md > release_notes.md