Yamllint GitHub Actions allow you to execute `yamllint` command within GitHub Actions.
The output of the actions can be viewed from the Actions tab in the main repository view. If the actions are executed on a pull request event, a comment may be posted on the pull request.
Yamllint GitHub Actions is a single GitHub Action that can be executed on different directories depending on the content of the GitHub Actions YAML file.
## Success Criteria
An exit code of `0` is considered a successful execution.
## Usage
The most common usage is to run `yamllint` on a file/directory. A comment will be posted to the pull request depending on the output of the Yamllint command being executed. This workflow can be configured by adding the following content to the GitHub Actions workflow YAML file.
*`yamllint_format` - (Optional) Format for parsing output. Defaults to `auto`.
*`yamllint_comment` - (Optional) Whether or not to comment on GitHub pull requests. Defaults to `false`.
## Outputs
Outputs are used to pass information to subsequent GitHub Actions steps.
*`yamllint_output` - The Yamllint build outputs.
## Secrets
Secrets are similar to inputs except that they are encrypted and only used by GitHub Actions. It's a convenient way to keep sensitive data out of the GitHub Actions workflow YAML file.
*`GITHUB_ACCESS_TOKEN` - (Optional) The GitHub API token used to post comments to pull requests. Not required if the `yamllint_comment` input is set to `false`.