Commit 3b452af
Simplify prerelease version assertion to hyphen check (#21)
The prerelease version assertion in the test workflow was matching
against a hardcoded list of identifiers (`preview|rc|alpha|beta`),
making it brittle and incomplete.
## Changes
- **`.github/workflows/Action-Test.yml`**: Replace specific identifier
regex with a simple hyphen presence check — consistent with how
prerelease detection works elsewhere in `action.yml`
```diff
- if ($installed -notmatch '-(preview|rc|alpha|beta)\.') {
- throw "Prerelease validation failed: installed version '$installed' does not contain a prerelease identifier (-preview, -rc, -alpha, -beta)."
+ if ($installed -notmatch '-') {
+ throw "Prerelease validation failed: installed version '$installed' does not contain a prerelease segment."
```
<!-- START COPILOT CODING AGENT TIPS -->
---
🔒 GitHub Advanced Security automatically protects Copilot coding agent
pull requests. You can protect all pull requests by enabling Advanced
Security for your repositories. [Learn more about Advanced
Security.](https://gh.io/cca-advanced-security)
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>1 parent 82418ac commit 3b452af
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
| 107 | + | |
| 108 | + | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
0 commit comments