-
Notifications
You must be signed in to change notification settings - Fork 47
/
action.yml
32 lines (30 loc) · 1008 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
25
26
27
28
29
30
31
32
name: Spectral Linting
author: Vincenzo Chianese
description: Lint your files with Spectral
inputs:
file_glob:
required: true
description: The pattern describing the file paths to lint with Spectral
default: '*.oas.{json,yml,yaml}'
spectral_ruleset:
required: false
description: |
Custom ruleset to load in Spectral.
When unspecified, will try to load the default ruleset (matching .spectral.{yaml,yml,js,json}) if it exists.
repo_token:
required: true
description: |
The GitHub App installation access token.
[Learn more about `GITHUB_TOKEN`](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#about-the-github_token-secret)
default: ${{ github.token }}
event_name:
required: true
description: |
The name of the event that triggered the workflow
default: ${{ github.event_name }}
runs:
using: docker
image: Dockerfile
branding:
icon: check-square
color: blue