File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments