Skip to content

Commit

Permalink
Update action.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhav-jain committed Mar 31, 2020
1 parent 8a0bb72 commit bc18b20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit bc18b20

Please sign in to comment.