/redoc-lint-github-action

A github action to lint open api files using Redocly OpenaAPI CLI tool.

Primary LanguageDockerfileMIT LicenseMIT

redoc-lint-github-action

This action allows you to lint your OpenAPI file.

Credits

This Github Action is a wrapper for Redocly's Open API CLI openapi-cli lint command.

Inputs

args

The entrypoint and other arguments to be provided to the openapi lint command. This is relative to your github workspace.

If args is not specified it will default to --help to return a list of commands.

Example Usage

jobs:
  test_job:
    runs-on: ubuntu-latest
    name: Test
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: openapi-lint 
        uses: mhiew/redoc-lint-github-action@v2
        with:
          args: 'test/petstore.yml'