Skip to content

Commit 96ba122

Browse files
committed
Add YAML-linter
1 parent e21bcb5 commit 96ba122

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/yamllinter.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
3+
on: # yamllint disable-line rule:truthy
4+
workflow_call:
5+
inputs:
6+
repository:
7+
description: 'The repository that needs linting'
8+
type: string
9+
default: github.repository
10+
required: false
11+
ref:
12+
description: 'The branch, tag or SHA that needs linting'
13+
type: string
14+
required: false
15+
default: github.ref
16+
17+
jobs:
18+
linter:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout Code
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
repository: ${{ inputs.repository }}
27+
ref: ${{ inputs.ref }}
28+
29+
- name: Lint YAML
30+
uses: ibiqlik/action-yamllint@v3.1.1

0 commit comments

Comments
 (0)