From 93b5e0a3664809a4ba4045aeb3adfafdc8941c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20G=C3=BCtschow?= Date: Thu, 23 Apr 2026 21:42:43 +0200 Subject: [PATCH 1/2] * Fix version number passing to towncrier * Lower patch version number to not skip a version * Fix errors in changelog (version number) --- .github/workflows/release.yaml | 2 +- changelog.md | 4 ++-- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 79422d5..224cee9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -47,7 +47,7 @@ jobs: # generate changelog - name: generate changelog run: | - uv run towncrier build --version=steps.package-version.outputs.version --yes + uv run towncrier build --version=${{ steps.package-version.outputs.version }} --yes git config --global user.name "$GITHUB_ACTOR" git config --global user.email "$CI_COMMIT_EMAIL" git commit -a -m "create changelog for version ${{ steps.package-version.outputs.version }}" diff --git a/changelog.md b/changelog.md index 9ef3909..6935b49 100644 --- a/changelog.md +++ b/changelog.md @@ -13,12 +13,12 @@ Chnagelog entries are added through small files in the `chnagelog` folder. The ` -## CDIAC-ff_data steps.package-version.outputs.version (2026-04-23) +## CDIAC-ff_data v0.1.1 (2026-04-23) ### Bug Fixes - Improved release workflow to automatically delete old news files and save the current version of the changelog with the release. ([#7](https://github.com/primap-community/CDIAC-ff_data/pulls/7)) -- * Fixed github calls and config in release.yaml ([#8](https://github.com/primap-community/CDIAC-ff_data/pulls/8)) +- Fixed github calls and config in release.yaml ([#8](https://github.com/primap-community/CDIAC-ff_data/pulls/8)) ### Improved Documentation diff --git a/pyproject.toml b/pyproject.toml index 0dde01f..aab3e61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "cdiac_ff_data" -version = "0.1.3" +version = "0.1.2" description = "Download CDIAC fossil fuel related CO2 emissions data and convert to primap2 format" readme = "README.md" #license = "CC BY-NC-SA" From b77ba71ae295b328062406877ee0cfffbc3aebd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20G=C3=BCtschow?= Date: Thu, 23 Apr 2026 21:48:38 +0200 Subject: [PATCH 2/2] Add news item --- changelog/10.fix.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/10.fix.md diff --git a/changelog/10.fix.md b/changelog/10.fix.md new file mode 100644 index 0000000..b97d264 --- /dev/null +++ b/changelog/10.fix.md @@ -0,0 +1 @@ +Fix passing version number to towncrier