mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-21 17:43:23 +01:00
Match wrangler version even if multiline output cloudflare#277
This commit is contained in:
parent
93fff4f656
commit
47d51f25c1
2 changed files with 6 additions and 1 deletions
5
.changeset/gentle-cobras-move.md
Normal file
5
.changeset/gentle-cobras-move.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"wrangler-action": patch
|
||||
---
|
||||
|
||||
fix: Detect existing wrangler install even when wrangler version output is multiline
|
|
@ -104,7 +104,7 @@ async function installWrangler() {
|
|||
// `3.48.0`
|
||||
const versionMatch =
|
||||
stdout.match(/wrangler (\d+\.\d+\.\d+)/) ??
|
||||
stdout.match(/^(\d+\.\d+\.\d+)/);
|
||||
stdout.match(/^(\d+\.\d+\.\d+)/m);
|
||||
if (versionMatch) {
|
||||
installedVersion = versionMatch[1];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue