mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-08-07 23:00:54 +00:00
Fix setOutput (#67)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
34ebfd6e6b
commit
ae431178c1
4 changed files with 52 additions and 10 deletions
|
@ -1,5 +1,6 @@
|
|||
import csvparse from 'csv-parse/lib/sync';
|
||||
import * as core from '@actions/core';
|
||||
import {issueCommand} from '@actions/core/lib/command';
|
||||
import * as fs from 'fs';
|
||||
import * as os from 'os';
|
||||
import * as path from 'path';
|
||||
|
@ -66,3 +67,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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue