Commit d5ee054
authored
🚀 [Feature]: Configure PowerShell ErrorView settings (#49)
## 🚀 New Feature: `ErrorView` Configuration
This release introduces a new feature to configure the PowerShell
`$ErrorView` variable in the GitHub Action. This also sets the default
to `NormalView` whereas the default in PowerShell is `ConciseView`.
`NormalView` provides more information that would be great to get when
troubleshooting errors in GitHub workflows. Users can still override
this by adding their own settings in the provided script or using the
input to set a different value when building actions or workflows.
#### Details
* Introduced the `ErrorView` input in `action.yml`, including its
description, default value (`'NormalView'`), and marking it as optional.
* The input is mapped to the new environment variable
`PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView` in the `action.yml` file.
* The environment variable is validated using wildcard matching against
a predefined list of valid views, applies the matched view setting.
* Added a description for the new `ErrorView` option in the `README.md`
file. This option allows users to configure the `$ErrorView` variable
using full or partial names of valid views.1 parent 23bc6b9 commit d5ee054
3 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
8 | 24 | | |
9 | 25 | | |
10 | 26 | | |
| |||
0 commit comments