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 = () => {
|
exports.handleRepositoryOption = () => {
|
||||||
const repositoryUrl = core.getInput(inputs.repository_url);
|
const repositoryUrl = core.getInput(inputs.repository_url);
|
||||||
core.debug(`repository_url input: ${repository_url}`);
|
core.debug(`repository_url input: ${repositoryUrl}`);
|
||||||
|
|
||||||
if (repositoryUrl) {
|
if (repositoryUrl) {
|
||||||
return { r: repositoryUrl };
|
return { r: repositoryUrl };
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
import { handleRepositoryOption } from './handleOptions';
|
||||||
|
|
||||||
const core = require('@actions/core');
|
const core = require('@actions/core');
|
||||||
const {
|
const {
|
||||||
handleBranchesOption,
|
handleBranchesOption,
|
||||||
|
|
@ -32,7 +34,8 @@ const release = async () => {
|
||||||
...handleDryRunOption(),
|
...handleDryRunOption(),
|
||||||
...handleCiOption(),
|
...handleCiOption(),
|
||||||
...handleExtends(),
|
...handleExtends(),
|
||||||
...handleTagFormat()
|
...handleTagFormat(),
|
||||||
|
...handleRepositoryOption()
|
||||||
});
|
});
|
||||||
|
|
||||||
await cleanupNpmrc();
|
await cleanupNpmrc();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue