Package io.github.cdklabs.projen.github
Class WorkflowActions
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.github.WorkflowActions
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.093Z") @Stability(Experimental) public class WorkflowActions extends software.amazon.jsii.JsiiObject
(experimental) A set of utility functions for creating GitHub actions in workflows.
-
-
Constructor Summary
Constructors Modifier Constructor Description WorkflowActions()protectedWorkflowActions(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedWorkflowActions(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static List<JobStep>checkoutWithPatch()(experimental) Checks out a repository and applies a git patch that was created usinguploadGitPatch.static List<JobStep>checkoutWithPatch(CheckoutWithPatchOptions options)(experimental) Checks out a repository and applies a git patch that was created usinguploadGitPatch.static List<JobStep>createPullRequest(CreatePullRequestOptions options)(experimental) A step that creates a pull request based on the current repo state.static List<JobStep>setupGitIdentity(GitIdentity id)Deprecated.useWorkflowSteps.setupGitIdentityinsteadstatic List<JobStep>uploadGitPatch(UploadGitPatchOptions options)(experimental) Creates a .patch file from the current git diff and uploads it as an artifact.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Method Detail
-
checkoutWithPatch
@Stability(Experimental) @NotNull public static List<JobStep> checkoutWithPatch(@Nullable CheckoutWithPatchOptions options)
(experimental) Checks out a repository and applies a git patch that was created usinguploadGitPatch.- Parameters:
options- Options.- Returns:
- Job steps
-
checkoutWithPatch
@Stability(Experimental) @NotNull public static List<JobStep> checkoutWithPatch()
(experimental) Checks out a repository and applies a git patch that was created usinguploadGitPatch.- Returns:
- Job steps
-
createPullRequest
@Stability(Experimental) @NotNull public static List<JobStep> createPullRequest(@NotNull CreatePullRequestOptions options)
(experimental) A step that creates a pull request based on the current repo state.- Parameters:
options- Options. This parameter is required.- Returns:
- Job steps
-
setupGitIdentity
@Stability(Deprecated) @Deprecated @NotNull public static List<JobStep> setupGitIdentity(@NotNull GitIdentity id)
Deprecated.useWorkflowSteps.setupGitIdentityinstead(deprecated) Configures the git identity (user name and email).- Parameters:
id- The identity to use. This parameter is required.- Returns:
- Job steps
-
uploadGitPatch
@Stability(Experimental) @NotNull public static List<JobStep> uploadGitPatch(@NotNull UploadGitPatchOptions options)
(experimental) Creates a .patch file from the current git diff and uploads it as an artifact. UsecheckoutWithPatchto download and apply in another job.If a patch was uploaded, the action can optionally fail the job.
- Parameters:
options- Options. This parameter is required.- Returns:
- Job steps
-
-