From d6fec5b5ff1accf02d5216a4ff22c752da055488 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Thu, 24 Jul 2025 17:01:20 +0100 Subject: [PATCH] chore: Improve RC release notes (#2361) --- .github/workflows/nightly.yml | 2 -- .github/workflows/release.yml | 4 ++-- .github/workflows/release_impl.yml | 6 ++++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index c47ee256..f78e757c 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -100,8 +100,6 @@ jobs: title: "Clio development (nightly) build" version: nightly header: > - # Release notes - > **Note:** Please remember that this is a development release and it is not recommended for production use. Changelog (including previous releases): diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7a516cf..ae7ecdc9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,6 +52,6 @@ jobs: title: "${{ github.ref_name}}" version: "${{ github.ref_name }}" header: > - # Introducing Clio version ${{ github.ref_name }} - generate_changelog: true + ${{ contains(github.ref_name, '-') && '> **Note:** Please remember that this is a release candidate and it is not recommended for production use.' || '' }} + generate_changelog: ${{ !contains(github.ref_name, '-') }} draft: true diff --git a/.github/workflows/release_impl.yml b/.github/workflows/release_impl.yml index 63237b3c..45f3e951 100644 --- a/.github/workflows/release_impl.yml +++ b/.github/workflows/release_impl.yml @@ -68,7 +68,9 @@ jobs: - name: Create release notes shell: bash run: | - printf '%s\n' "${{ inputs.header }}" > "${RUNNER_TEMP}/release_notes.md" + echo "# Release notes" > "${RUNNER_TEMP}/release_notes.md" + echo "" >> "${RUNNER_TEMP}/release_notes.md" + printf '%s\n' "${{ inputs.header }}" >> "${RUNNER_TEMP}/release_notes.md" - name: Generate changelog shell: bash @@ -77,7 +79,7 @@ jobs: LAST_TAG="$(gh release view --json tagName -q .tagName)" LAST_TAG_COMMIT="$(git rev-parse $LAST_TAG)" BASE_COMMIT="$(git merge-base HEAD $LAST_TAG_COMMIT)" - git-cliff "${BASE_COMMIT}..HEAD" --ignore-tags "nightly|-b" + git-cliff "${BASE_COMMIT}..HEAD" --ignore-tags "nightly|-b|-rc" cat CHANGELOG.md >> "${RUNNER_TEMP}/release_notes.md" - name: Prepare release artifacts