A custom GitHub Action's inputs, outputs, and other configurations are defined in its metadata file, which must be named action.yml or action.yaml and placed at the root of the action's repository. This YAML file specifies how the action runs (e.g., using Docker or JavaScript) and provides the metadata for its inputs and outputs, which are then used by workflows that call the action.Key aspects of the action.yml or action.yaml fileFormat: It uses YAML syntax.Location: It must be in the root directory of your action's repository.Contents: It defines the action's name, description, inputs, outputs, and the runs configuration to specify the execution environment (like a Docker image or JavaScript file) and entrypoint.Inputs and Outputs: The file includes inputs and outputs sections to declare the data the action accepts and produces, respectively.Reference:https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax
A custom GitHub Action's inputs, outputs, and other configurations are defined in its metadata file, which must be named action.yml or action.yaml and placed at the root of the action's repository. This YAML file specifies how the action runs (e.g., using Docker or JavaScript) and provides the metadata for its inputs and outputs, which are then used by workflows that call the action.
Key aspects of the action.yml or action.yaml file
Format: It uses YAML syntax.
Location: It must be in the root directory of your action's repository.
Contents: It defines the action's name, description, inputs, outputs, and the runs configuration to specify the execution environment (like a Docker image or JavaScript file) and entrypoint.
Inputs and Outputs: The file includes inputs and outputs sections to declare the data the action accepts and produces, respectively.
Reference:
https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax