mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 18:56:56 +00:00
wip: modifiying
This commit is contained in:
parent
6d88447fcd
commit
d7ab7f2e6d
3 changed files with 20 additions and 1 deletions
|
|
@ -32,6 +32,9 @@ inputs:
|
|||
tag_format:
|
||||
required: false
|
||||
description: 'The default tag format on semantic-release is v{version}. You can override that behavior using this option.'
|
||||
repository_url:
|
||||
required: false
|
||||
description: 'The Git repository url. If no repository url specified, current repository will be used by default.'
|
||||
outputs:
|
||||
new_release_published:
|
||||
description: 'Whether a new release was published'
|
||||
|
|
|
|||
|
|
@ -116,3 +116,18 @@ exports.handleTagFormat = () => {
|
|||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle repository-url Option
|
||||
* @returns {{}|{r: String}}
|
||||
*/
|
||||
exports.handleRepositoryOption = () => {
|
||||
const repositoryUrl = core.getInput(inputs.repository_url);
|
||||
core.debug(`repository_url input: ${repository_url}`);
|
||||
|
||||
if (repositoryUrl) {
|
||||
return { r: repositoryUrl };
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
|
@ -7,5 +7,6 @@
|
|||
"ci": "ci",
|
||||
"extends": "extends",
|
||||
"working_directory": "working_directory",
|
||||
"tag_format": "tag_format"
|
||||
"tag_format": "tag_format",
|
||||
"repository_url": "repository_url"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue