Class 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 Detail

      • WorkflowActions

        protected WorkflowActions​(software.amazon.jsii.JsiiObjectRef objRef)
      • WorkflowActions

        protected WorkflowActions​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • WorkflowActions

        @Stability(Experimental)
        public WorkflowActions()
    • 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 using uploadGitPatch.

        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 using uploadGitPatch.

        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.
        use WorkflowSteps.setupGitIdentity instead
        (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. Use checkoutWithPatch to 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