mirror of
https://github.com/docker/build-push-action.git
synced 2025-06-19 17:27:12 +02:00
@ -35,7 +35,7 @@ export async function getVersion(): Promise<string> {
|
||||
}
|
||||
|
||||
export async function parseVersion(stdout: string): Promise<string> {
|
||||
const matches = /\sv([0-9.]+)\s/.exec(stdout);
|
||||
const matches = /\sv?([0-9.]+)/.exec(stdout);
|
||||
if (!matches) {
|
||||
throw new Error(`Cannot parse Buildx version`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user