@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.766Z") @Stability(value=Experimental) public class GithubWorkflow extends Component
A workflow is a configurable automated process made up of one or more jobs.
https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions| Modifier and Type | Class and Description |
|---|---|
static class |
GithubWorkflow.Builder
(experimental) A fluent builder for
GithubWorkflow. |
| Modifier | Constructor and Description |
|---|---|
|
GithubWorkflow(GitHub github,
String name) |
|
GithubWorkflow(GitHub github,
String name,
GithubWorkflowOptions options) |
protected |
GithubWorkflow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GithubWorkflow(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJobs(Map<String,Job> jobs)
(experimental) Add jobs to the workflow.
|
String |
getConcurrency()
(experimental) Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.
|
YamlFile |
getFile()
(experimental) The workflow YAML file.
|
String |
getName()
(experimental) The name of the workflow.
|
void |
on(Triggers events)
(experimental) Add events to triggers the workflow.
|
getProject, postSynthesize, preSynthesize, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected GithubWorkflow(software.amazon.jsii.JsiiObjectRef objRef)
protected GithubWorkflow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public GithubWorkflow(@NotNull
GitHub github,
@NotNull
String name,
@Nullable
GithubWorkflowOptions options)
github - This parameter is required.name - This parameter is required.options - @Stability(value=Experimental)
public void addJobs(@NotNull
Map<String,Job> jobs)
jobs - Jobs to add. This parameter is required.@Stability(value=Experimental)
public void on(@NotNull
Triggers events)
events - The event(s) to trigger the workflow. This parameter is required.@Stability(value=Experimental) @NotNull public String getName()
@Stability(value=Experimental) @Nullable public String getConcurrency()
Default: disabled
@Stability(value=Experimental) @Nullable public YamlFile getFile()
May not exist if workflowsEnabled is false on GitHub.
Copyright © 2021. All rights reserved.