From 29aaafb9e4920540a801a16b9caa0b6d6a8d50e3 Mon Sep 17 00:00:00 2001 From: Guido Grazioli Date: Fri, 1 Apr 2022 21:41:52 +0200 Subject: [PATCH] ci: changelogs skip unlabeled PRs --- .github/workflows/docs.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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