Commit 5e09f26
committed
Stop Update SDKs failing when there is nothing to update
setup-dotnet registers a post-job step that saves the NuGet cache, and that
step fails the run if ~/.nuget/packages was never created. On the no-updates
path every Restore/Build/Test step is skipped, nothing ever restores, and the
cache save errors out - turning a perfectly healthy repo red every week.
Move the setup step below the update check and gate it on has_updates, so it
only runs when there is actually something to build. Caching is kept for the
path that benefits from it, and the cache key is now computed after global.json
has been rewritten, which is what the existing note there already wanted.
[patch]1 parent 139d5e6 commit 5e09f26
1 file changed
Lines changed: 21 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 45 | | |
59 | 46 | | |
60 | 47 | | |
| |||
255 | 242 | | |
256 | 243 | | |
257 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
258 | 266 | | |
259 | 267 | | |
260 | 268 | | |
| |||
0 commit comments