We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b85f0c9 + b8e3108 commit 7b61968Copy full SHA for 7b61968
.github/workflows/yml-lint.yaml
@@ -1,9 +1,10 @@
1
-name: YAML Formatting
+name: YAML Lint
2
3
-on: [pull_request]
+on:
4
+ pull_request:
5
6
jobs:
- format:
7
+ lint:
8
runs-on: ubuntu-latest
9
steps:
10
- name: Checkout repository
@@ -12,13 +13,5 @@ jobs:
12
13
- name: Install Prettier
14
run: npm install --global prettier
15
- - name: Format YAML files
16
- run: prettier --write "**/*.yml"
17
-
18
- - name: Commit changes
19
- run: |
20
- git config --global user.name "github-actions"
21
- git config --global user.email "actions@github.com"
22
- git add .
23
- git diff --quiet && git diff --staged --quiet || git commit -m "chore: auto-format YAML files" -s
24
- git push
+ - name: Check YAML formatting
+ run: prettier --check "**/*.yaml"
0 commit comments