name: "Github action build chain. Cross-repo builds"
author: "Enrique Mingorance Cano <emingora@redhat.com>, Shubh Bapna <sbapna@redhat.com>"
description: |
  Github action build chain is a tool to build multiple projects from different repositories in a single action.
inputs:
  definition-file:
    description: "the file where the build chain is defined. It can a file in the same repository (relative path) or a URL"
    required: true
  flow-type:
    description: "the flow to execute, it can be 'cross_pr', 'full_downstream', 'single_pr' or 'branch'"
    default: "cross_pr"
    required: false
  starting-project:
    description: "the project to start flow from. By default is the project triggering the job"
    required: false
  skip-execution:
    description: "skips execution and artifacts archiving for all projects. Overrides skip-project-execution"
    default: "false"
    required: false
  skip-project-execution:
    description: "skips execution and artifacts archiving for certain projects"
    required: false
  skip-checkout:
    description: "Skip checkout for all projects. Overrides skip-project-checkout"
    default: "false"
    required: false
  skip-project-checkout:
    description: "A list of projects to skip checkout"
    required: false
  skip-parallel-checkout:
    description: "Checkout the project sequentially or parallely"
    default: "false"
    required: false
  enable-parallel-execution:
    description: "Parallely execute projects"
    default: "false"
    required: false
  custom-command-treatment:
    description: "<RegEx||ReplacementEx> Regex defines the regular expression for what you want to replace with the ReplacementEx"
    required: false
  additional-flags:
    description: "The chance to define additional flags for the execution, as it is done on the CLI side. Just semicolon (;) separated, like '--skipParallelCheckout;--skipExecution;-cct (mvn .*)||$1 -s settings.xml'"
    required: false
  logger-level:
    description: "the log level. 'info' (default) | 'trace' | 'debug'"
    default: "info"
    required: false
  annotations-prefix:
    description: "The prefix to identify the annotations for different jobs running for the same Action"
    required: false
runs:
  using: "node16"
  main: "dist/index.js"
branding:
  icon: "box"
  color: "red"