mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 10:46:56 +00:00
feat: add repository_url input
This commit is contained in:
parent
d7ab7f2e6d
commit
8dffec4efa
2 changed files with 5 additions and 2 deletions
|
|
@ -123,7 +123,7 @@ exports.handleTagFormat = () => {
|
|||
*/
|
||||
exports.handleRepositoryOption = () => {
|
||||
const repositoryUrl = core.getInput(inputs.repository_url);
|
||||
core.debug(`repository_url input: ${repository_url}`);
|
||||
core.debug(`repository_url input: ${repositoryUrl}`);
|
||||
|
||||
if (repositoryUrl) {
|
||||
return { r: repositoryUrl };
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import { handleRepositoryOption } from './handleOptions';
|
||||
|
||||
const core = require('@actions/core');
|
||||
const {
|
||||
handleBranchesOption,
|
||||
|
|
@ -32,7 +34,8 @@ const release = async () => {
|
|||
...handleDryRunOption(),
|
||||
...handleCiOption(),
|
||||
...handleExtends(),
|
||||
...handleTagFormat()
|
||||
...handleTagFormat(),
|
||||
...handleRepositoryOption()
|
||||
});
|
||||
|
||||
await cleanupNpmrc();
|
||||
|
|
|
|||
Loading…
Reference in a new issue