|
64 | 64 |
|
65 | 65 | --- |
66 | 66 |
|
| 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 | + |
67 | 102 | ## check-github-actions.yml |
68 | 103 |
|
69 | 104 | Lints GitHub Actions workflow files using |
@@ -140,43 +175,6 @@ Detects common misspellings across files using |
140 | 175 | | ------- | -------- | ------- | |
141 | 176 | | `files` | false | `.` | |
142 | 177 |
|
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 | | - |
180 | 178 | ## label-pull-request.yml |
181 | 179 |
|
182 | 180 | Applies labels to pull requests based on file paths using |
|
0 commit comments