diff --git a/action.yaml b/action.yaml index 3f99156..9178706 100644 --- a/action.yaml +++ b/action.yaml @@ -1,11 +1,11 @@ -name: 'Swagger cli action' -description: 'Run Swagger validation on your OAS JSON or YAML file. Supports Swagger 2.0 or OpenAPI 3.0 format' +name: 'Open API Specification Lint action' +description: 'Runs Swagger validation on your OAS JSON or YAML file. Supports Swagger 2.0 or OpenAPI 3.0 format' inputs: - args: - description: 'Arguments. Use --help to see the complete list of supported args' + file_path: + description: 'Path to OAS file for validation' required: true runs: using: 'docker' image: 'Dockerfile' args: - - ${{ inputs.args }} + - ${{ inputs.file_path }} diff --git a/entrypoint.sh b/entrypoint.sh index 36faf2b..e3535e3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,4 +4,4 @@ echo "======================" echo "= Linting OAS file =" echo "======================" -cd /github/workspace/ && spectral lint "${INPUT_ARGS[@]}" +cd /github/workspace/ && spectral lint "$INPUT_FILE_PATH"