Commit 681c96d
committed
Splat build.ps1 arguments as a hashtable so the dispatch inputs work
The workflow_dispatch inputs have no effect except to break the run. Array
splatting binds positionally, and build.ps1 declares only switches with no
positional parameters, so any non-default input fails the build immediately:
build.ps1: A positional parameter cannot be found that accepts argument
'-SkipCoverage'.
Only the all-defaults path works today, because that leaves the array empty.
Splatting a hashtable binds by parameter name instead.
This is invisible on push and pull_request, which never populate the inputs,
so it only bites someone dispatching the workflow by hand -- which is also the
only way to get a matrix run on a branch with no pull request open.1 parent 3bf1ef4 commit 681c96d
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments