Skip to content
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
17 changes: 8 additions & 9 deletions release-version/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,14 @@ jobs:

## Action Configuration

| Input Variable | Description | |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| python-version | Python version to use for running the code | Optional |
| release-type | Type of the release. | Required |
| release-version | A release version to use. Overrides release-type | Optional |
| release-series | A release series to use. | Optional |
| versioning-scheme | The versioning scheme to use for the release. Either pep440 or semver | Optional. Default is pep440 |
| git-tag-prefix | The prefix for the git tags | Optional. Default is 'v' |
| project-types | The project type to determine the version for as space separated values. Supported are 'cargo', 'cmake', 'go', 'java', 'npm' and 'pyproject'. | Optional. By default all project types will be considered. |
| Input Variable | Description | |
| ----------------- | --------------------------------------------------------------------- | --------------------------- |
| python-version | Python version to use for running the code | Optional |
| release-type | Type of the release. | Required |
| release-version | A release version to use. Overrides release-type | Optional |
| release-series | A release series to use. | Optional |
| versioning-scheme | The versioning scheme to use for the release. Either pep440 or semver | Optional. Default is pep440 |
| git-tag-prefix | The prefix for the git tags | Optional. Default is 'v' |

## Output Arguments

Expand Down
21 changes: 0 additions & 21 deletions release-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ inputs:
versioning-scheme:
description: "What versioning scheme should be used for the release? Supported: 'semver' and 'pep440'. Default: pep440"
default: "pep440"
project-types:
description: |
"The project type to determine the version for as space separated values. "
"Supported are 'cargo', 'cmake', 'go', 'java', 'npm' and 'pyproject'."
"If not set, all project types will be considered."

outputs:
last-release-version:
Expand Down Expand Up @@ -86,22 +81,6 @@ runs:
ARGS="${ARGS} --release-series ${{ inputs.release-series }}"
echo "ARGS=${ARGS}" >> $GITHUB_ENV
shell: bash
- name: Parse project types
if: ${{ inputs.project-types }}
run: |
for type in ${{ inputs.project-types }}; do
case $type in
cargo | cmake | go | java | npm | pyproject)
;;
*)
echo "Unsupported project type: $type"
exit 1
;;
esac
done
ARGS="${ARGS} --project-types ${{ inputs.project-types }}"
echo "ARGS=${ARGS}" >> $GITHUB_ENV
shell: bash
- name: Determine release versions
id: release-versions
run: |
Expand Down
Loading