diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4f42680..80f3128 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -73,7 +73,7 @@ jobs: PR=$(echo $frag|cut -d~ -f2) type="$(echo $frag|cut -d~ -f3)" msg="$(echo $frag|cut -d~ -f4|sed 's/`/``/g')" - if [[ "${TYPES[*]}" =~ "${type}" ]]; then + if [[ "$type" != "" && "${TYPES[*]}" =~ "${type}" ]]; then echo -e "$type:\n - >\n $msg \`#${PR} \`_" \ > changelogs/fragments/${PR}.yaml fi diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a95c5ad..9a497a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,7 +60,7 @@ jobs: PR=$(echo $frag|cut -d~ -f2) type="$(echo $frag|cut -d~ -f3)" msg="$(echo $frag|cut -d~ -f4|sed 's/`/``/g')" - if [[ "${TYPES[*]}" =~ "${type}" ]]; then + if [[ "$type" != "" && "${TYPES[*]}" =~ "${type}" ]]; then echo -e "$type:\n - >\n $msg \`#${PR} \`_" \ > changelogs/fragments/${PR}.yaml fi