From eedaab42d531e9bca7953f0abfb97f8b40c2b4d1 Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Tue, 25 Jun 2024 16:03:34 +0200 Subject: [PATCH] ci: :construction_worker: handle changelog error gracefully and use annotated tags --- .drone.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index ee5abcc..0b7ef1c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,9 +11,9 @@ steps: "https://gitea.dikurium.ch/" - git config --global --add --bool push.autoSetupRemote true - git fetch --tags - - cz bump --yes + - cz bump --annotated-tag --yes - git push --follow-tags - - cz changelog $(cz version -p) > CZ_CURRENT_CHANGELOG.md + - cz changelog $(cz version -p) > CZ_CURRENT_CHANGELOG.md || echo "An error occured while generating the changelog." environment: GIT_PASSWORD: from_secret: git_token @@ -32,6 +32,8 @@ steps: notes_file: CZ_CURRENT_CHANGELOG.md owner: innopeak repo: gqlgen-contrib + skip_if_no_notes_file: true + trigger: branch: - main