Commit 5295a19 1 parent 498c38c commit 5295a19 Copy full SHA for 5295a19
File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
FROM mhart/alpine-node:12
2
2
3
- RUN npm install -g @apidevtools/swagger-cli
3
+ RUN npm install -g @stoplight/spectral
4
4
5
5
COPY entrypoint.sh /usr/local/bin/
6
6
Original file line number Diff line number Diff line change 1
1
name : ' Swagger cli action'
2
2
description : ' Run Swagger validation on your OAS JSON or YAML file. Supports Swagger 2.0 or OpenAPI 3.0 format'
3
3
inputs :
4
- file_path :
5
- description : ' Path to OAS file for validation '
4
+ args :
5
+ description : ' Arguments. Use --help to see the complete list of supported args '
6
6
required : true
7
7
runs :
8
8
using : ' docker'
9
9
image : ' Dockerfile'
10
10
args :
11
- - ${{ inputs.file_path }}
11
+ - ${{ inputs.args }}
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ echo "======================"
4
4
echo " = Linting OAS file ="
5
5
echo " ======================"
6
6
7
- cd /github/workspace/ && swagger-cli validate " $INPUT_FILE_PATH "
7
+ cd /github/workspace/ && spectral lint " $INPUT_ARGS "
You can’t perform that action at this time.
0 commit comments