Skip to content

Commit bc18b20

Browse files
committed
Update action.yaml
1 parent 8a0bb72 commit bc18b20

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

action.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: 'Swagger cli action'
2-
description: 'Run Swagger validation on your OAS JSON or YAML file. Supports Swagger 2.0 or OpenAPI 3.0 format'
1+
name: 'Open API Specification Lint action'
2+
description: 'Runs Swagger validation on your OAS JSON or YAML file. Supports Swagger 2.0 or OpenAPI 3.0 format'
33
inputs:
4-
args:
5-
description: 'Arguments. Use --help to see the complete list of supported args'
4+
file_path:
5+
description: 'Path to OAS file for validation'
66
required: true
77
runs:
88
using: 'docker'
99
image: 'Dockerfile'
1010
args:
11-
- ${{ inputs.args }}
11+
- ${{ inputs.file_path }}

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ echo "======================"
44
echo "= Linting OAS file ="
55
echo "======================"
66

7-
cd /github/workspace/ && spectral lint "${INPUT_ARGS[@]}"
7+
cd /github/workspace/ && spectral lint "$INPUT_FILE_PATH"

0 commit comments

Comments
 (0)