Commit 809bab2
authored
fix(ci): disable checkout clean on self-hosted runners (#2733)
## Summary
- The `sudo rm -rf` approach from #2732 fails because the self-hosted
WSL runner lacks passwordless sudo (`sudo: a terminal is required to
read the password`).
- Replace it by setting `clean: ${{ matrix.runs-on != 'self-hosted' }}`
on `actions/checkout`, so checkout skips its built-in workspace clean
on self-hosted runners and no longer fails with EACCES on root-owned
Podman overlay files.
- GitHub-hosted runners continue to get `clean: true` as before.
## Test plan
- [ ] Verify the WSL CI job passes (checkout no longer fails with
EACCES or sudo password prompt)
- [ ] Verify Linux and macOS jobs are unaffected (`clean: true` still
applies to non-self-hosted runners)
Made with [Cursor](https://cursor.com)1 parent d68efce commit 809bab2
2 files changed
+13
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
35 | 32 | | |
36 | | - | |
37 | 33 | | |
38 | 34 | | |
39 | | - | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
43 | 38 | | |
44 | | - | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
49 | 43 | | |
50 | 44 | | |
51 | 45 | | |
| 46 | + | |
52 | 47 | | |
53 | 48 | | |
54 | 49 | | |
| |||
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
63 | | - | |
64 | 58 | | |
65 | 59 | | |
66 | 60 | | |
| |||
70 | 64 | | |
71 | 65 | | |
72 | 66 | | |
73 | | - | |
74 | 67 | | |
75 | 68 | | |
76 | 69 | | |
| |||
80 | 73 | | |
81 | 74 | | |
82 | 75 | | |
83 | | - | |
84 | 76 | | |
85 | 77 | | |
86 | 78 | | |
87 | 79 | | |
88 | 80 | | |
89 | 81 | | |
90 | 82 | | |
91 | | - | |
92 | 83 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 84 | | |
97 | 85 | | |
98 | 86 | | |
99 | 87 | | |
100 | | - | |
101 | 88 | | |
102 | 89 | | |
103 | 90 | | |
| |||
109 | 96 | | |
110 | 97 | | |
111 | 98 | | |
112 | | - | |
113 | 99 | | |
114 | 100 | | |
115 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
305 | 289 | | |
306 | 290 | | |
307 | 291 | | |
308 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
309 | 301 | | |
310 | 302 | | |
311 | 303 | | |
| |||
0 commit comments