Interface JobStep

    • Method Detail

      • getEnv

        @Stability(Experimental)
        @Nullable
        default Map<String,​String> getEnv()
        (experimental) Sets environment variables for steps to use in the runner environment.

        You can also set environment variables for the entire workflow or a job.

        Specified by:
        getEnv in interface StepConfiguration
      • getId

        @Stability(Experimental)
        @Nullable
        default String getId()
        (experimental) A unique identifier for the step.

        You can use the id to reference the step in contexts.

        Specified by:
        getId in interface StepConfiguration
      • getIfValue

        @Stability(Experimental)
        @Nullable
        default String getIfValue()
        (experimental) You can use the if conditional to prevent a job from running unless a condition is met.

        You can use any supported context and expression to create a conditional.

        Specified by:
        getIfValue in interface StepConfiguration
      • getName

        @Stability(Experimental)
        @Nullable
        default String getName()
        (experimental) A name for your step to display on GitHub.
        Specified by:
        getName in interface StepConfiguration
      • getWorkingDirectory

        @Stability(Experimental)
        @Nullable
        default String getWorkingDirectory()
        (experimental) Specifies a working directory for a step.

        Overrides a job's working directory.

        Specified by:
        getWorkingDirectory in interface StepConfiguration