Class Defaults

  • All Implemented Interfaces:
    io.typeflows.util.Renderable

    
    public final class Defaults
     implements Renderable<Map<String, Any>>
                        

    Represents default settings that apply to all jobs or steps in a GitHub Actions workflow.

    Defaults provide a way to set common configuration that will be inherited by all jobs in a workflow or all steps in a job, reducing duplication and ensuring consistency. Currently supports default run settings like shell and working directory.

    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Map<String, Object> render()
      final static Defaults create(Configure<Defaults.DSL> block) Creates and configures a Defaults instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • create

         final static Defaults create(Configure<Defaults.DSL> block)

        Creates and configures a Defaults instance.

        Parameters:
        block - Configuration lambda to set up the defaults
        Returns:

        Configured Defaults instance