mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-04-08 00:10:03 +00:00
feat: add ability to unset GITHUB_ACTION env var
Signed-off-by: David van der Spek <david.vanderspek@flyrlabs.com>
This commit is contained in:
parent
fbe969823c
commit
266ea7eb8c
5 changed files with 12 additions and 2 deletions
|
|
@ -126,8 +126,8 @@ exports.handleRepositoryUrlOption = () => {
|
|||
core.debug(`repository_url input: ${repositoryUrl}`);
|
||||
|
||||
if (repositoryUrl) {
|
||||
return { r: repositoryUrl };
|
||||
return { r: repositoryUrl };
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -27,6 +27,11 @@ const release = async () => {
|
|||
await preInstall(core.getInput(inputs.extra_plugins));
|
||||
await preInstall(core.getInput(inputs.extends));
|
||||
|
||||
if (core.getInput(inputs.unset_gha_env) === 'true') {
|
||||
core.debug('Unset GITHUB_ACTIONS environment variable');
|
||||
delete process.env.GITHUB_ACTIONS;
|
||||
}
|
||||
|
||||
const semanticRelease = await import('semantic-release');
|
||||
const result = await semanticRelease.default({
|
||||
...handleBranchesOption(),
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"extra_plugins": "extra_plugins",
|
||||
"dry_run": "dry_run",
|
||||
"ci": "ci",
|
||||
"unset_gha_env": "unset_gha_env",
|
||||
"extends": "extends",
|
||||
"working_directory": "working_directory",
|
||||
"tag_format": "tag_format",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue