From 70434d69880943e5ed405d815770712be0404c86 Mon Sep 17 00:00:00 2001 From: Jim Garrison Date: Mon, 26 Jun 2023 14:11:43 -0400 Subject: [PATCH] Don't assume we are on the `main` branch when collecting release notes --- .github/workflows/docs.yml | 5 +++++ releasenotes/config.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0ab7c29ab..737e41d67 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -28,6 +28,11 @@ jobs: pip install tox sudo apt-get update sudo apt-get install -y pandoc + - name: Tell reno to name the upcoming release after the branch we are on + shell: bash + run: | + sed -i.bak -e '/unreleased_version_title:*/d' releasenotes/config.yaml + echo unreleased_version_title: \"Upcoming release \(\`\`${GITHUB_REF_NAME}\`\`\)\" >> releasenotes/config.yaml - name: Build docs shell: bash run: | diff --git a/releasenotes/config.yaml b/releasenotes/config.yaml index 213e4a4e5..ba0254b34 100644 --- a/releasenotes/config.yaml +++ b/releasenotes/config.yaml @@ -1,5 +1,5 @@ --- encoding: utf8 default_branch: main -unreleased_version_title: "Upcoming release (``main`` branch)" +unreleased_version_title: "Upcoming release" earliest_version: 0.1.0