Interface CommonJobDefinition

    • Method Detail

      • getConcurrency

        @Stability(Experimental)
        @Nullable
        default Object getConcurrency()
        (experimental) Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.

        A concurrency group can be any string or expression. The expression can use any context except for the secrets context.

      • 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.

      • getName

        @Stability(Experimental)
        @Nullable
        default String getName()
        (experimental) The name of the job displayed on GitHub.
      • getNeeds

        @Stability(Experimental)
        @Nullable
        default List<String> getNeeds()
        (experimental) Identifies any jobs that must complete successfully before this job will run.

        It can be a string or array of strings. If a job fails, all jobs that need it are skipped unless the jobs use a conditional expression that causes the job to continue.

      • getStrategy

        @Stability(Experimental)
        @Nullable
        default JobStrategy getStrategy()
        (experimental) A strategy creates a build matrix for your jobs.

        You can define different variations to run each job in.