diff --git a/action.yml b/action.yml index cd17c88..0bcc613 100644 --- a/action.yml +++ b/action.yml @@ -37,6 +37,9 @@ inputs: custom-arguments: description: 'custom arguments that are passed directly to the semantic-release cli' required: false + hooks: + description: 'enable hooks plugins for semantic release' + required: false outputs: version: description: 'the version of the created release' diff --git a/dist/index.js b/dist/index.js index 3b0832d..65ef03c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6685,6 +6685,10 @@ async function main() { args.push(changelogOpts[idx]); } } + if (core.getInput("hooks")) { + args.push("--hooks"); + args.push(core.getInput("hooks")); + } if (core.getInput("custom-arguments")) { args = args.concat(core.getInput("custom-arguments").split(" ").filter(String)); } diff --git a/src/index.ts b/src/index.ts index 6ad9ea2..c1b8345 100644 --- a/src/index.ts +++ b/src/index.ts @@ -74,6 +74,10 @@ async function main (): Promise { args.push(changelogOpts[idx]) } } + if (core.getInput('hooks')) { + args.push('--hooks') + args.push(core.getInput('hooks')) + } if (core.getInput('custom-arguments')) { args = args.concat(core.getInput('custom-arguments').split(' ').filter(String)) }