Skip to content

Commit e740630

Browse files
committed
Rename check-stylelint to check-css for consistency
It's not about the specific tooling.
1 parent 57fb549 commit e740630

3 files changed

Lines changed: 37 additions & 39 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: check stylelint
1+
name: check css
22

33
on:
44
workflow_call:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ Reusable workflows are defined as top-level files under
4545
General-purpose workflows intended for use by any repository:
4646

4747
- `detect-changed-files.yml` – Expose paths-filter outputs for conditional jobs
48+
- `check-css.yml` – Lint CSS via stylelint
4849
- `check-github-actions.yml` – Lint workflows via actionlint
4950
- `check-html.yml` – Format and lint HTML via Prettier
5051
- `check-markdown.yml` – Format and lint Markdown via Prettier
5152
- `check-shell.yml` – Format and lint shell scripts
5253
- `check-spelling.yml` – Spellcheck via typos
53-
- `check-stylelint.yml` – Lint CSS via stylelint
5454
- `label-pull-request.yml` – Apply labels via actions/labeler
5555
- `ready-to-merge.yml` – Ensure all required jobs truly passed
5656
- `preload-caches-actionlint.yml` – Cache the actionlint binary

docs/common.md

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,41 @@ jobs:
6464

6565
---
6666

67+
## check-css.yml
68+
69+
Lints CSS files using [stylelint](https://stylelint.io/). By default, it
70+
installs the latest published `stylelint`, `stylelint-config-standard`, and
71+
`stylelint-config-recess-order` packages into the runner workspace; callers can
72+
pin package versions when they need fixed versions.
73+
74+
**Inputs**
75+
76+
| Name | Required | Default |
77+
| --------------------------------------- | -------- | ---------- |
78+
| `files` | false | `**/*.css` |
79+
| `stylelint_config_recess_order_version` | false | `latest` |
80+
| `stylelint_config_standard_version` | false | `latest` |
81+
| `stylelint_version` | false | `latest` |
82+
83+
**Typical usage with changed files**
84+
85+
```yml
86+
jobs:
87+
detect_changed_files:
88+
permissions:
89+
pull-requests: read
90+
uses: EarthmanMuons/reusable-workflows/.github/workflows/detect-changed-files.yml@main
91+
92+
check_css:
93+
needs: detect_changed_files
94+
if: needs.detect_changed_files.outputs.css == 'true'
95+
uses: EarthmanMuons/reusable-workflows/.github/workflows/check-css.yml@main
96+
with:
97+
files: ${{ needs.detect_changed_files.outputs.css_files }}
98+
```
99+
100+
---
101+
67102
## check-github-actions.yml
68103

69104
Lints GitHub Actions workflow files using
@@ -140,43 +175,6 @@ Detects common misspellings across files using
140175
| ------- | -------- | ------- |
141176
| `files` | false | `.` |
142177

143-
---
144-
145-
## check-stylelint.yml
146-
147-
Lints CSS files using [stylelint](https://stylelint.io/). By default, it
148-
installs the latest published `stylelint`, `stylelint-config-standard`, and
149-
`stylelint-config-recess-order` packages into the runner workspace; callers can
150-
pin package versions when they need fixed versions.
151-
152-
**Inputs**
153-
154-
| Name | Required | Default |
155-
| --------------------------------------- | -------- | ---------- |
156-
| `files` | false | `**/*.css` |
157-
| `stylelint_config_recess_order_version` | false | `latest` |
158-
| `stylelint_config_standard_version` | false | `latest` |
159-
| `stylelint_version` | false | `latest` |
160-
161-
**Typical usage with changed files**
162-
163-
```yml
164-
jobs:
165-
detect_changed_files:
166-
permissions:
167-
pull-requests: read
168-
uses: EarthmanMuons/reusable-workflows/.github/workflows/detect-changed-files.yml@main
169-
170-
check_stylelint:
171-
needs: detect_changed_files
172-
if: needs.detect_changed_files.outputs.css == 'true'
173-
uses: EarthmanMuons/reusable-workflows/.github/workflows/check-stylelint.yml@main
174-
with:
175-
files: ${{ needs.detect_changed_files.outputs.css_files }}
176-
```
177-
178-
---
179-
180178
## label-pull-request.yml
181179

182180
Applies labels to pull requests based on file paths using

0 commit comments

Comments
 (0)