Skip to content
Merged
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Creates a new GitHub release based on git tags and [semantic versioning](https:/
**NOTE**: This action uses [`github.ref`](https://docs.github.com/en/actions/learn-github-actions/contexts#github-context)
variable for target branch name (see: https://cli.github.com/manual/gh_release_create).

The released version is also written to the [job summary](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary).

### Inputs
| Name | Description | Optional |
|-------------|:-----------------------------------------|----------|
Expand Down Expand Up @@ -237,6 +239,7 @@ Generates project version based on current git commit and git tags.
This action relies on git tags to be present in order to generate a version.
2) Generated version will not be compatible with [PEP-440](https://peps.python.org/pep-0440/), so these versions
should not be used with python packages.
3) The generated version is also written to the [job summary](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary).

### Inputs
No inputs defined
Expand Down
4 changes: 4 additions & 0 deletions generate_version/generate_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ set -Eeuo pipefail
version=$(git describe --tags --abbrev=7)

echo "version=$version" >> "$GITHUB_OUTPUT"

if [[ -n "${GITHUB_STEP_SUMMARY:-}" ]]; then
echo "### Version: \`$version\`" >> "$GITHUB_STEP_SUMMARY"
fi
4 changes: 4 additions & 0 deletions semver_release/semver_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ else
fi

echo "version=$nextVersion" >> "$GITHUB_OUTPUT"

if [[ -n "${GITHUB_STEP_SUMMARY:-}" ]]; then
echo "### Released version: \`$nextVersion\`" >> "$GITHUB_STEP_SUMMARY"
fi
Loading