Package io.github.cdklabs.projen.github
Class GithubWorkflow.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.GithubWorkflow.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GithubWorkflow>
- Enclosing class:
- GithubWorkflow
@Stability(Experimental) public static final class GithubWorkflow.Builder extends Object implements software.amazon.jsii.Builder<GithubWorkflow>
(experimental) A fluent builder forGithubWorkflow.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GithubWorkflowbuild()GithubWorkflow.Builderconcurrency(String concurrency)(experimental) Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.static GithubWorkflow.Buildercreate(GitHub github, String name)GithubWorkflow.Builderforce(Boolean force)(experimental) Force the creation of the workflow even ifworkflowsis disabled inGitHub.
-
-
-
Method Detail
-
create
@Stability(Experimental) public static GithubWorkflow.Builder create(GitHub github, String name)
- Parameters:
github- This parameter is required.name- This parameter is required.- Returns:
- a new instance of
GithubWorkflow.Builder.
-
concurrency
@Stability(Experimental) public GithubWorkflow.Builder concurrency(String concurrency)
(experimental) Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.Currently in beta.
Default: - disabled
- Parameters:
concurrency- Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. This parameter is required.- Returns:
this- See Also:
- https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency
-
force
@Stability(Experimental) public GithubWorkflow.Builder force(Boolean force)
(experimental) Force the creation of the workflow even ifworkflowsis disabled inGitHub.Default: false
- Parameters:
force- Force the creation of the workflow even ifworkflowsis disabled inGitHub. This parameter is required.- Returns:
this
-
build
@Stability(Experimental) public GithubWorkflow build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GithubWorkflow>- Returns:
- a newly built instance of
GithubWorkflow.
-
-