5
0
Fork 0
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:
MJ Studio 2024-03-19 17:26:21 +09:00 committed by GitHub
parent 6d88447fcd
commit d7ab7f2e6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 20 additions and 1 deletions

View file

@ -32,6 +32,9 @@ inputs:
tag_format: tag_format:
required: false required: false
description: 'The default tag format on semantic-release is v{version}. You can override that behavior using this option.' 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: outputs:
new_release_published: new_release_published:
description: 'Whether a new release was published' description: 'Whether a new release was published'

View file

@ -116,3 +116,18 @@ exports.handleTagFormat = () => {
return {}; 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 {};
}
};

View file

@ -7,5 +7,6 @@
"ci": "ci", "ci": "ci",
"extends": "extends", "extends": "extends",
"working_directory": "working_directory", "working_directory": "working_directory",
"tag_format": "tag_format" "tag_format": "tag_format",
"repository_url": "repository_url"
} }