Skip to content

Commit

Permalink
feat: add hooks config option
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Jan 30, 2022
1 parent 75b4220 commit 7149b16
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ async function main (): Promise<void> {
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))
}
Expand Down

0 comments on commit 7149b16

Please sign in to comment.