v2 / .github / workflows / workflow_lint.yml
25 lines · 21 sloc · 587 bytes · a48e8e28ecbbdb19e5632354f2eae61863fed90b
Raw
1name: Workflow Lint
2
3## Note: to install `prettier` locally, see https://prettier.io/docs/en/install,
4## or just: `npm install --save-dev --save-exact prettier`
5
6## If you already have `prettier` installed, to run it locally,
7## just run: `npx prettier --check **.yml` .
8
9on:
10 push:
11 paths:
12 - '**.yml'
13 pull_request:
14 paths:
15 - '**.yml'
16
17jobs:
18 lint-yml-workflows:
19 runs-on: ubuntu-latest
20 steps:
21 - uses: actions/checkout@v6
22 - name: Verify formatting
23 uses: creyD/[email protected]
24 with:
25 prettier_options: --check **.yml
26