forked from swaggerexpert/swagger-editor-validate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
24 lines (24 loc) · 867 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# action.yml
name: Swagger Editor Validator
description: This GitHub Actions validates OpenAPI (OAS) definition file using Swagger Editor.
inputs:
swagger-editor-url:
description: URL where Swagger Editor is served
required: false
default: https://editor.swagger.io/
definition-file:
description: Path to definition file
required: true
ignore-error:
description: JavaScript file containing predicate for determining if the error should be ignored or not
required: false
runs:
using: composite
steps:
- run: cd ${GITHUB_ACTION_PATH} && npm install
shell: bash
- run: cd ${GITHUB_ACTION_PATH} && SWAGGER_EDITOR_URL=${{ inputs.swagger-editor-url }} DEFINITION_FILE=${{ inputs.definition-file }} IGNORE_ERROR=${{ inputs.ignore-error }} node src/index.js
shell: bash
branding:
icon: 'file-text'
color: 'green'