@Stability(value=Experimental) public static final class UpgradeDependenciesWorkflowOptions.Builder extends Object implements software.amazon.jsii.Builder<UpgradeDependenciesWorkflowOptions>
UpgradeDependenciesWorkflowOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public UpgradeDependenciesWorkflowOptions.Builder branches(List<String> branches)
UpgradeDependenciesWorkflowOptions.getBranches()branches - List of branches to create PR's for.this@Stability(value=Experimental) public UpgradeDependenciesWorkflowOptions.Builder container(ContainerOptions container)
UpgradeDependenciesWorkflowOptions.getContainer()container - Job container options.this@Stability(value=Experimental) public UpgradeDependenciesWorkflowOptions.Builder gitIdentity(GitIdentity gitIdentity)
UpgradeDependenciesWorkflowOptions.getGitIdentity()gitIdentity - The git identity to use for commits.this@Stability(value=Experimental) public UpgradeDependenciesWorkflowOptions.Builder labels(List<String> labels)
UpgradeDependenciesWorkflowOptions.getLabels()labels - Labels to apply on the PR.this@Stability(value=Experimental) public UpgradeDependenciesWorkflowOptions.Builder rebuild(Boolean rebuild)
UpgradeDependenciesWorkflowOptions.getRebuild()rebuild - Execute 'build' after the upgrade.
When true, the workflow will run the project build task after the dependency upgrade.
This means that the PR created will include any changes caused by the build command,
(e.g project synth changes, test snapshots)
This is necessary when using the default github token.
this@Stability(value=Experimental) public UpgradeDependenciesWorkflowOptions.Builder runsOn(List<String> runsOn)
UpgradeDependenciesWorkflowOptions.getRunsOn()runsOn - Github Runner selection labels.this@Stability(value=Experimental) public UpgradeDependenciesWorkflowOptions.Builder schedule(UpgradeDependenciesSchedule schedule)
UpgradeDependenciesWorkflowOptions.getSchedule()schedule - Schedule to run on.this@Stability(value=Experimental) public UpgradeDependenciesWorkflowOptions.Builder secret(String secret)
UpgradeDependenciesWorkflowOptions.getSecret()secret - Which secret to use when creating the PR.
When using the default github token, PR's created by this workflow
will not trigger any subsequent workflows (i.e the build workflow).
This is why this workflow also runs 'build' by default, and manually updates
the status check of the PR.
If you pass a token that has the workflow permissions, you can skip running
build in this workflow by specifying rebuild: false.
this@Stability(value=Experimental) public UpgradeDependenciesWorkflowOptions build()
build in interface software.amazon.jsii.Builder<UpgradeDependenciesWorkflowOptions>UpgradeDependenciesWorkflowOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.