From 88b8d1d2a0c45a707c7fd74df82d0015d7d00cb1 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Tue, 19 May 2026 21:57:42 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=91=B7=20correct=20logic=20to=20che?= =?UTF-8?q?ck=20if=20release=20is=20possible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f32ea0..31bec70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,7 +66,8 @@ jobs: continue-on-error: true id: check_changes run: | - if cog check --from-latest-tag; then + # Determine if a bump is possible. + if [[ $(cog bump --auto --dry-run) != No* ]]; then echo "has_changes=true" >> $GITHUB_OUTPUT else echo "has_changes=false" >> $GITHUB_OUTPUT @@ -83,7 +84,8 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | version=$(cog get-version) - uvx git-cliff --latest --output RELEASE_NOTES.md --strip all + # Remove logging from git-cliff. + RUST_LOG='none' uvx git-cliff --latest --output RELEASE_NOTES.md --strip all gh release create "${version}" \ --title "Release ${version}" \ --notes-file RELEASE_NOTES.md