Skip to content

Commit

Permalink
Add: Add version outputs for release action
Browse files Browse the repository at this point in the history
Allow to get the versions determined and used by the release action via
action outputs.

This will allow to actually split a release workflow into several steps.
  • Loading branch information
bjoernricks committed May 9, 2023
1 parent 1b52e30 commit a507d29
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ inputs:
description: "Update version in project files like `pyproject.toml`. Default is 'true'. Set to an other string then 'true' to disable updating project files."
default: "true"

outputs:
release-version:
description: "Version of the release. Depending on the inputs it is calculated from the detected last release version."
value: ${{ steps.release.outputs.release-version }}
last-release-version:
description: "Detected version of the previous release."
value: ${{ steps.release.outputs.last-release-version }}
git-release-tag:
description: "Git tag created for the release version"
value: ${{ steps.release.outputs.git-release-tag }}
next-version:
description: "Version set after a successful release"
value: ${{ steps.release.outputs.next-version }}

branding:
icon: "package"
color: "green"
Expand Down Expand Up @@ -159,4 +173,4 @@ runs:
gpg-passphrase: ${{ inputs.gpg-passphrase }}
versioning-scheme: ${{ inputs.versioning-scheme }}
release-series: ${{ inputs.release-series }}
release-version: ${{ inputs.release-version }}
release-version: ${{ steps.release.outputs.release-version }}

0 comments on commit a507d29

Please sign in to comment.