You've already forked docker_build-push-action
mirror of
https://gh-proxy.com/github.com/docker/build-push-action.git
synced 2025-04-17 00:31:28 +08:00
+1
-1
@@ -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