From 9c80894c3ccd45f11020a17743c1b98c2cf78f95 Mon Sep 17 00:00:00 2001 From: shankar0123 Date: Mon, 4 May 2026 00:46:31 +0000 Subject: [PATCH] ci(release): pin run-name + release title to tag (fix ugly auto-generated titles) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two GitHub-Actions defaults were producing ugly titles on every tag: 1. The Actions-tab workflow run title was auto-generated as ` #` because release.yml had no `run-name:`. The v2.0.69 push showed up as "chore: rename Go module path to github.com/certctl-io/certctl #73" instead of the obvious "Release v2.0.69". 2. The Releases-page title was auto-generated by softprops/action-gh-release@v2 because the action's `with:` block had no `name:` field — it falls back to the most recent commit subject in that case, producing the same noise on the Releases page. Fixes: - Add `run-name: Release ${{ github.ref_name }}` at the workflow top. `github.ref_name` resolves to the tag (e.g., `v2.0.69`) since the only trigger is `on: push: tags: ['v*']`. Actions tab now shows "Release v2.0.69". - Add `name: ${{ github.ref_name }}` to the softprops/action-gh-release@v2 step's `with:` block. Releases page now shows "v2.0.69" as the title instead of the commit subject. Affects v2.0.70+. The v2.0.69 workflow run + release page that's already in flight retain the bad titles (the workflow file is read at trigger time); the v2.0.69 Releases-page title can be manually edited via the GitHub UI ("Edit release" → set title to `v2.0.69` → Update release). The Actions-tab run name for #73 is immutable post-trigger. This same pattern likely affects ci.yml + the other workflows but the operator-facing surface is the Release workflow's titles, so leaving the CI workflows alone for now (they run continuously on master and nobody clicks individual run titles). --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c413be0..22bcb83 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,12 @@ name: Release +# Override the auto-generated run name (which would otherwise default to +# the most recent commit subject + a #NN run number) so the Actions tab +# shows "Release v2.0.69" instead of "chore: rename Go module path... #73". +# `github.ref_name` resolves to the tag name (e.g., `v2.0.69`) for tag-triggered +# workflows, which is the only trigger we set below. +run-name: Release ${{ github.ref_name }} + on: push: tags: @@ -346,6 +353,11 @@ jobs: # noise that gives operators no signal about what actually changed. uses: softprops/action-gh-release@v2 with: + # Pin the release title to the tag name. softprops/action-gh-release@v2 + # falls back to the most recent commit subject when `name:` is omitted, + # which produces ugly titles like "chore: rename Go module path..." on + # the Releases page. `github.ref_name` evaluates to the tag (`v2.0.69`). + name: ${{ github.ref_name }} generate_release_notes: true body: | > **Install / upgrade:** see the [Quick Start section in the README](https://github.com/certctl-io/certctl/blob/master/README.md#quick-start) for Docker Compose, agent install, Helm, and binary download instructions.