-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathaction.yml
More file actions
33 lines (31 loc) · 886 Bytes
/
action.yml
File metadata and controls
33 lines (31 loc) · 886 Bytes
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
33
name: 'Ratchet'
description: 'Run ratchet lint against the provided configurations.'
branding:
icon: 'shield'
color: 'purple'
inputs:
files:
description: 'Files to lint'
default: '.'
version:
description: 'Version of ratchet to use'
default: 'latest'
runs:
using: 'composite'
steps:
- id: 'download'
name: 'Download sethvargo/ratchet'
shell: 'bash'
env:
GH_TOKEN: '${{ github.token }}' # for the gh CLI
VERSION: '${{ inputs.version }}'
run: '${{ github.action_path }}/scripts/install-github-actions.sh'
- name: 'Run ratchet lint'
shell: 'bash'
env:
GITHUB_TOKEN: '${{ github.token }}' # for quota and auth
RATCHET_FILES: '${{ inputs.files }}'
run: |-
shopt -s dotglob
shopt -s nullglob
${{ steps.download.outputs.binary-path }} lint ${RATCHET_FILES}