From a5c376f64144b7ab34d5b7da28cf30b1609556ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Fri, 20 Feb 2026 10:58:45 +0100 Subject: [PATCH] Revert adding project-types input to release-version action For this action the project-types is not required because the current version and next version only depend on git tags and not the version set in a project meta file like pyproject.toml. --- release-version/README.md | 17 ++++++++--------- release-version/action.yml | 21 --------------------- 2 files changed, 8 insertions(+), 30 deletions(-) diff --git a/release-version/README.md b/release-version/README.md index 25052466..3f55a8dc 100644 --- a/release-version/README.md +++ b/release-version/README.md @@ -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 diff --git a/release-version/action.yml b/release-version/action.yml index 1b57bf59..6e5397e7 100644 --- a/release-version/action.yml +++ b/release-version/action.yml @@ -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: @@ -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: |