Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ steps:
| `proxy-server` | Configure a proxy servier in the form of `<host>:<port>` e.g. `proxy-host.com:8080` |
| `skip-github-release` | If `true`, do not attempt to create releases. This is useful if splitting release tagging from PR creation. |
| `skip-github-pull-request` | If `true`, do not attempt to create release pull requests. This is useful if splitting release tagging from PR creation. |
| `skip-labeling` | If `true`, do not attempt to label the PR. |

## GitHub Credentials

Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ inputs:
description: 'if set to true, then do not try to open pull requests'
required: false
default: false
skip-labeling:
description: 'if set to true, then do not try to label the PR'
required: false
default: false
changelog-host:
description: 'The proto://host where commits live. Default `https://github.com`'
required: false
Expand Down
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ interface ActionInputs {
targetBranch?: string;
skipGitHubRelease?: boolean;
skipGitHubPullRequest?: boolean;
skipLabeling?: boolean;
fork?: boolean;
includeComponentInTag?: boolean;
changelogHost: string;
Expand All @@ -60,6 +61,7 @@ function parseInputs(): ActionInputs {
proxyServer: getOptionalInput('proxy-server'),
skipGitHubRelease: getOptionalBooleanInput('skip-github-release'),
skipGitHubPullRequest: getOptionalBooleanInput('skip-github-pull-request'),
skipLabeling: getOptionalBooleanInput('skip-labeling'),
fork: getOptionalBooleanInput('fork'),
includeComponentInTag: getOptionalBooleanInput('include-component-in-tag'),
changelogHost: core.getInput('changelog-host') || DEFAULT_GITHUB_SERVER_URL,
Expand Down Expand Up @@ -95,13 +97,15 @@ function loadOrBuildManifest(
},
{
fork: inputs.fork,
skipLabeling: inputs.skipLabeling,
},
inputs.path
);
}
const manifestOverrides = inputs.fork
const manifestOverrides = inputs.fork || inputs.skipLabeling
? {
fork: inputs.fork,
skipLabeling: inputs.skipLabeling,
}
: {};
core.debug('Loading manifest from config file');
Expand Down