Commit 4463abf
authored
🪲 [Fix]: Fix setting the
This pull request introduces changes related to the handling of the
`ErrorView` configuration in a GitHub Actions workflow. The changes
streamline the `ErrorView` initialization logic by removing redundant
code and adding validation to ensure `ErrorView` is set correctly during
runtime.
### Changes to `ErrorView` handling:
*
[`.github/workflows/TestWorkflow.yml`](diffhunk://#diff-242a265d6d6bfff6094c9285345022d0e6d7ddde58504dfc80249fafbd89ba2cR228-R233):
Added a validation step to confirm that `ErrorView` is set to
`'NormalView'` during the workflow execution. If not, an exception is
thrown.
*
[`action.yml`](diffhunk://#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6R94):
Introduced the assignment of the `ErrorView` environment variable from
the input parameter for use in subsequent scripts.
*
[`scripts/init.ps1`](diffhunk://#diff-f47ceebe9ade2bb55cede031de8267e9c87b09336a93fcd557c02c1f488554b6L7-L23):
Removed the redundant initialization and validation logic for
`ErrorView`, as this is now handled directly in the workflow and action
configuration.$ErrorView setting via inputs (#53)1 parent 1e8d9ba commit 4463abf
File tree
3 files changed
+7
-17
lines changed- .github/workflows
- scripts
3 files changed
+7
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
228 | 234 | | |
229 | 235 | | |
230 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 7 | | |
25 | 8 | | |
26 | 9 | | |
| |||
0 commit comments