Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add changelog to python-poetry release output #134

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/python-poetry-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down