1
0
Fork 0
mirror of https://github.com/docker/setup-buildx-action.git synced 2025-05-11 00:49:30 +02:00

Enhance builder inspection

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2021-04-23 18:14:38 +02:00
parent abdb186058
commit 72750233ac
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
10 changed files with 215 additions and 53 deletions

View file

@ -1,5 +1,6 @@
import * as os from 'os';
import * as core from '@actions/core';
import {issueCommand} from '@actions/core/lib/command';
export const osPlat: string = os.platform();
export const osArch: string = os.arch();
@ -49,3 +50,8 @@ export const asyncForEach = async (array, callback) => {
await callback(array[index], index, array);
}
};
// FIXME: Temp fix https://github.com/actions/toolkit/issues/777
export function setOutput(name: string, value: any): void {
issueCommand('set-output', {name}, value);
}