-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (31 loc) · 802 Bytes
/
lint-yaml.yml
File metadata and controls
40 lines (31 loc) · 802 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
34
35
36
37
38
39
40
# workflows/lint-yaml.yml
#
# Lint YAML
# Lint YAML files using Prettier.
name: Lint YAML
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "**/*.yml"
- "**/*.yaml"
- ".github/workflows/lint-yaml.yml"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: lint-yaml-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint-yaml:
name: Lint YAML Files
runs-on: ubuntu-latest
steps:
- name: Checkout Git Repository
uses: actions/checkout@v6
- name: Set up NodeJS Environment
uses: actions/setup-node@v6
- name: Install Prettier
run: npm install -g prettier
- name: Check YAML Formatting
run: prettier --check "**/*.{yml,yaml}"