From ee3946b77e0b82e9c5aa39f0206a9d31acc1f716 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 14 Aug 2020 19:49:19 +0200 Subject: [PATCH] Display available platforms Signed-off-by: CrazyMax --- setup-buildx/dist/index.js | 4 +++- setup-buildx/src/main.ts | 4 +++- setup-qemu/dist/index.js | 1 + setup-qemu/src/main.ts | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/setup-buildx/dist/index.js b/setup-buildx/dist/index.js index e87f9e7..217de68 100644 --- a/setup-buildx/dist/index.js +++ b/setup-buildx/dist/index.js @@ -2519,7 +2519,9 @@ function run() { yield exec.exec('docker', ['buildx', 'install'], false); } core.info('🛒 Extracting available platforms...'); - core.setOutput('platforms', yield buildx.platforms()); + const platforms = yield buildx.platforms(); + core.info(`${platforms}`); + core.setOutput('platforms', platforms); } catch (error) { core.setFailed(error.message); diff --git a/setup-buildx/src/main.ts b/setup-buildx/src/main.ts index 77f8cd4..be4c065 100644 --- a/setup-buildx/src/main.ts +++ b/setup-buildx/src/main.ts @@ -51,7 +51,9 @@ async function run(): Promise { } core.info('🛒 Extracting available platforms...'); - core.setOutput('platforms', await buildx.platforms()); + const platforms = await buildx.platforms(); + core.info(`${platforms}`); + core.setOutput('platforms', platforms); } catch (error) { core.setFailed(error.message); } diff --git a/setup-qemu/dist/index.js b/setup-qemu/dist/index.js index a5f62b2..79399eb 100644 --- a/setup-qemu/dist/index.js +++ b/setup-qemu/dist/index.js @@ -1021,6 +1021,7 @@ function run() { throw new Error(res.stderr); } const platforms = JSON.parse(res.stdout.trim()); + core.info(`${platforms.supported.join(',')}`); core.setOutput('platforms', platforms.supported.join(',')); }); } diff --git a/setup-qemu/src/main.ts b/setup-qemu/src/main.ts index 2b2ede9..c7592f3 100644 --- a/setup-qemu/src/main.ts +++ b/setup-qemu/src/main.ts @@ -26,6 +26,7 @@ async function run(): Promise { throw new Error(res.stderr); } const platforms: Platforms = JSON.parse(res.stdout.trim()); + core.info(`${platforms.supported.join(',')}`); core.setOutput('platforms', platforms.supported.join(',')); }); } catch (error) {