Skip to content

Commit 838b0e0

Browse files
committed
Add stylelinter
1 parent 724177e commit 838b0e0

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/stylelinter.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
pattern:
17+
description: 'The file-pattern to match files that are being linted'
18+
type: string
19+
required: false
20+
default: '**/*.{css,scss,sass}'
21+
22+
jobs:
23+
linter:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout Code
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
repository: ${{ inputs.repository }}
32+
ref: ${{ inputs.ref }}
33+
34+
- name: Lint stylesheets
35+
uses: actions-hub/[email protected]
36+
env:
37+
PATTERN: ${{ inputs.pattern }}
38+
INDENT_SPACES: 2

0 commit comments

Comments
 (0)