From ee786eac0d70dec8682ec64264573cae88bf4fb1 Mon Sep 17 00:00:00 2001 From: Thibault VINCENT Date: Fri, 7 Oct 2022 19:07:54 +0200 Subject: [PATCH] ci: fix artifacthub annotations content --- .github/workflows/release.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08853c5..af68a4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -638,7 +638,11 @@ jobs: entries.append(entry) - output = yaml.dump(entries) + if len(entries): + output = yaml.dump(entries) + else: + output = '' + print(output) with open(os.environ['GITHUB_ENV'], 'a') as outfile: outfile.write('ARTIFACTHUB_CHANGELOG<