1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-12 12:01:29 +02:00

fix: restore include-component-in-tag default (false) (#888)

v3 had this option and must be configurable or at least set to `false`
so that the default behavior is to create a plain `v1.2.3` tag (without
the component name prefixed).

Found this while dogfooding our own usage of the action (in this repo).
This commit is contained in:
Jeff Ching
2023-12-01 11:37:56 -08:00
committed by GitHub
parent eb6e95104a
commit 19431a1126
4 changed files with 9 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ interface ActionInputs {
skipGitHubRelease?: boolean;
skipGitHubPullRequest?: boolean;
fork?: boolean;
includeComponentInTag?: boolean;
}
// TODO: replace this interface is exported from release-please
@@ -86,6 +87,7 @@ function parseInputs(): ActionInputs {
skipGitHubRelease: getOptionalBooleanInput('skip-github-release'),
skipGitHubPullRequest: getOptionalBooleanInput('skip-github-pull-request'),
fork: getOptionalBooleanInput('fork'),
includeComponentInTag: getOptionalBooleanInput('include-component-in-tag'),
};
return inputs;
}
@@ -113,6 +115,7 @@ function loadOrBuildManifest(
github.repository.defaultBranch,
{
releaseType: inputs.releaseType,
includeComponentInTag: inputs.includeComponentInTag,
},
{
fork: inputs.fork,