Commit c205dbd
authored
ci(mise): make mise cache configurable via GitHub variable (#310)
## Description
This PR makes the mise-action cache configuration centrally manageable
through a GitHub repository variable (`MISE_CACHE_ENABLED`).
## Changes Made
- Updated all `jdx/mise-action@v3` invocations in
`.github/workflows/code_checks.yml` and
`.github/workflows/publish_docs.yml` to use `cache: ${{
vars.MISE_CACHE_ENABLED || 'true'}}` instead of hardcoded values
- Affected jobs: `pre-commit`, `python-checks`, `mkdocs`,
`integration-tests`, `python-versions`, `push-docs`
- The expression uses a fallback to `'true'` if the variable is not set,
ensuring caching is enabled by default
## Reason for Changes
Previously, the `cache` parameter was inconsistently set across
different jobs (some had `false`, others had `true`). This makes it
difficult to manage caching behavior across the entire workflow.
By centralizing the cache configuration through a GitHub variable, we
can:
- Toggle caching on/off for all jobs from a single location (repository
settings)
- Maintain consistent caching behavior across all jobs
- Quickly disable caching for troubleshooting without modifying workflow
files
- Keep caching enabled by default (when the variable is not set)
## Link to the initial request/ticket
N/A - This is a workflow improvement.1 parent fd9e5d4 commit c205dbd
2 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | | - | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
113 | | - | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| |||
205 | 210 | | |
206 | 211 | | |
207 | 212 | | |
208 | | - | |
| 213 | + | |
| 214 | + | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
| |||
244 | 250 | | |
245 | 251 | | |
246 | 252 | | |
247 | | - | |
| 253 | + | |
| 254 | + | |
248 | 255 | | |
249 | 256 | | |
250 | 257 | | |
| |||
282 | 289 | | |
283 | 290 | | |
284 | 291 | | |
285 | | - | |
| 292 | + | |
| 293 | + | |
286 | 294 | | |
287 | 295 | | |
288 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | | - | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
0 commit comments