Skip to content

Commit

Permalink
Display available platforms
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
CrazyMax committed Aug 14, 2020
1 parent 46bf329 commit ee3946b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion setup-buildx/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion setup-buildx/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ async function run(): Promise<void> {
}

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);
}
Expand Down
1 change: 1 addition & 0 deletions setup-qemu/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions setup-qemu/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ async function run(): Promise<void> {
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) {
Expand Down

0 comments on commit ee3946b

Please sign in to comment.