Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for specifying backend #151

Merged
merged 1 commit into from
Aug 4, 2024
Merged
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
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ inputs:
config:
description: "Config file location. If not present, the default 'release-plz.toml' is used."
required: false
backend:
description: "Forge backend. Valid values: 'github', 'gitea'"
default: "github"
required: false
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
Expand Down Expand Up @@ -76,6 +80,14 @@ runs:
TOKEN=""
fi

if [[ -n "${{ inputs.backend }}" ]]
then
echo "using backend '${{ inputs.backend }}'"
BACKEND="--backend ${{ inputs.backend }}"
else
BACKEND=""
fi

if [[ -n "${{ inputs.registry }}" ]]
then
echo "using registry '${{ inputs.registry }}'"
Expand Down Expand Up @@ -105,6 +117,7 @@ runs:
${CONFIG_PATH}\
${ALT_REGISTRY}\
${MANIFEST_PATH}\
${BACKEND}\
-o json)
echo "release_pr_output: $release_pr_output"
prs=$(echo $release_pr_output | jq -c .prs)
Expand All @@ -129,6 +142,7 @@ runs:
${CONFIG_PATH}\
${ALT_REGISTRY}\
${MANIFEST_PATH}\
${BACKEND}\
${TOKEN}\
-o json)
echo "release_output: $release_output"
Expand Down