Commit 85c68b7
committed
๐ ๏ธ [fix] Improves ColorScriptCache build process
Improves the robustness and reliability of the `Build-ColorScriptCache` function.
- ๐ ๏ธ Handles cases where `$records` is null or empty to prevent errors during cache building. ๐ Addresses a potential issue where the script would throw an error if no records were found.
- โ Adds a conditional check for `$records` before accessing its `Count` property.
- โ Adds a conditional check for `$totalCount` before displaying the summary.
- ๐ท Adds workflow run triggers to publish and changelog workflows.
- ๐ Automates updates to changelogs after a publish workflow is completed and triggers publish workflows after tests are completed.
- ๐งช Improves test robustness.
- ๐ Suppresses output in tests to prevent errors.
Signed-off-by: Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com>1 parent e5eac8b commit 85c68b7
4 files changed
Lines changed: 12 additions & 4 deletions
File tree
- .github/workflows
- ColorScripts-Enhanced
- Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1323 | 1323 | | |
1324 | 1324 | | |
1325 | 1325 | | |
1326 | | - | |
| 1326 | + | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | 1329 | | |
| |||
1402 | 1402 | | |
1403 | 1403 | | |
1404 | 1404 | | |
1405 | | - | |
| 1405 | + | |
1406 | 1406 | | |
1407 | 1407 | | |
1408 | 1408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| |||
0 commit comments