Skip to content

Commit 141a787

Browse files
committed
Add YAML-linter
1 parent e21bcb5 commit 141a787

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/yamllinter.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
required: true
10+
ref:
11+
description: 'The branch, tag or SHA that needs linting'
12+
type: string
13+
required: false
14+
default: 'master'
15+
16+
jobs:
17+
linter:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout Code
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
repository: ${{ inputs.repository }}
26+
ref: ${{ inputs.ref }}
27+
28+
- name: Lint YAML
29+
uses: ibiqlik/action-yamllint@v3.1.1

0 commit comments

Comments
 (0)