Skip to content

Commit

Permalink
chore: deprecate project_manifest in favor of manifest_path
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoieni committed Apr 14, 2024
1 parent 63ab0c2 commit 7c65a1c
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ inputs:
config:
description: "Config file location. If not present, the default 'release-plz.toml' is used."
required: false
project_manifest:
manifest_path:
description: "Path to the Cargo.toml of the project you want to update. If not provided, release-plz will use the Cargo.toml of the
root directory. Both Cargo workspaces and single packages are supported."
required: false
project_manifest:
description: "Deprecated. Use `manifest_path` instead."
required: false
version:
description: "Release-plz version to use. It must be an existing git tag name. For example `release-plz-v0.2.45`. (Default: `latest`)."
default: "release-plz-v0.3.58"
Expand Down Expand Up @@ -57,12 +60,16 @@ runs:
ALT_REGISTRY=""
fi
if [[ -n "${{ inputs.project_manifest }}" ]]
if [[ -n "${{ inputs.manifest_path }}" ]]
then
echo "using manifest path '${{ inputs.manifest_path }}'"
MANIFEST_PATH="--manifest-path ${{ inputs.manifest_path }}"
elif [[ -n "${{ inputs.project_manifest }}" ]]
then
echo "using project manifest '${{ inputs.project_manifest }}'"
PROJECT_MANIFEST="--project-manifest ${{ inputs.project_manifest }}"
echo "using manifest path '${{ inputs.project_manifest }}'"
MANIFEST_PATH="--project-manifest ${{ inputs.project_manifest }}"
else
PROJECT_MANIFEST=""
MANIFEST_PATH=""
fi
if [[ -z "${{ inputs.command }}" || "${{ inputs.command }}" == "release-pr" ]]
Expand All @@ -73,7 +80,7 @@ runs:
--repo-url https://github.com/${GITHUB_REPOSITORY}\
${CONFIG_PATH}\
${ALT_REGISTRY}\
${PROJECT_MANIFEST}
${MANIFEST_PATH}
fi
if [[ -z "${{ inputs.command }}" || "${{ inputs.command }}" == "release" ]]
Expand All @@ -83,5 +90,5 @@ runs:
--git-token ${GITHUB_TOKEN}\
${CONFIG_PATH}\
${ALT_REGISTRY}\
${PROJECT_MANIFEST}
${MANIFEST_PATH}
fi

0 comments on commit 7c65a1c

Please sign in to comment.