From 08184f1778dc1b6a2c7fe66415d39fe454a918ec Mon Sep 17 00:00:00 2001 From: Ramin Gharib Date: Wed, 23 Aug 2023 15:08:19 +0200 Subject: [PATCH] Add changelog to python-poetry release output --- .github/workflows/README.md | 11 ++++++----- .github/workflows/python-poetry-release.yaml | 4 ++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/README.md b/.github/workflows/README.md index ffbfda8b0..c398c445e 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -554,10 +554,11 @@ email: `[username]@users.noreply.github.com`. This workflow outputs two variables: The `old-version` and the `release-version`. These variables can be used in the future jobs (e.g., using the `release-version` to create a GitHub release). -| Name | Description | -| --------------- | --------------------------------- | -| old-version | The old version of the package | -| release-version | The bumped version of the package | +| Name | Description | +| --------------- | ------------------------------------ | +| old-version | The old version of the package | +| release-version | The bumped version of the package | +| changelog | The content of the CHANGELOG.md file | ### Calling the workflow @@ -588,7 +589,7 @@ jobs: runs-on: ubuntu-latest needs: call-workflow-passing-data steps: - - run: echo Bumped Version from ${{ needs.call-workflow-passing-data.outputs.old-version }} to ${{ needs.call-workflow-passing-data.outputs.release-version }} + - run: echo Bumped Version from ${{ needs.call-workflow-passing-data.outputs.old-version }} to ${{ needs.call-workflow-passing-data.outputs.release-version }} with CHANGELOG.md ${{ needs.call-workflow-passing-data.outputs.changelog }} ``` ## Python Poetry Publish PyPI diff --git a/.github/workflows/python-poetry-release.yaml b/.github/workflows/python-poetry-release.yaml index aee5917cf..f54ccf781 100644 --- a/.github/workflows/python-poetry-release.yaml +++ b/.github/workflows/python-poetry-release.yaml @@ -55,6 +55,9 @@ on: old-version: description: "The old version of the package." value: ${{ jobs.create-release.outputs.old-version }} + changelog: + description: "The content of the CHANGELOG.md file." + value: ${{ jobs.create-release.outputs.changelog }} jobs: create-release: @@ -64,6 +67,7 @@ jobs: outputs: release-version: ${{ steps.bump-version.outputs.release-version }} old-version: ${{ steps.bump-version.outputs.old-version }} + changelog: ${{ steps.build-changelog.outputs.merged-changelog }} steps: - name: Check out repository