5
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2025-11-07 18:56:56 +00:00

feat: add repository_url input

This commit is contained in:
mym0404 2024-03-19 17:29:33 +09:00
parent d7ab7f2e6d
commit 8dffec4efa
2 changed files with 5 additions and 2 deletions

View file

@ -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 };

View file

@ -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();