Remove workaround for setOutput

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2022-10-08 18:46:17 +02:00
parent bfc44eaf57
commit 2d3efc7878
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
4 changed files with 3 additions and 9 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,4 @@
import * as core from '@actions/core'; import * as core from '@actions/core';
import {issueCommand} from '@actions/core/lib/command';
export interface Inputs { export interface Inputs {
image: string; image: string;
@ -12,8 +11,3 @@ export function getInputs(): Inputs {
platforms: core.getInput('platforms') || 'all' platforms: core.getInput('platforms') || 'all'
}; };
} }
// FIXME: Temp fix https://github.com/actions/toolkit/issues/777
export function setOutput(name: string, value: unknown): void {
issueCommand('set-output', {name}, value);
}

View file

@ -44,7 +44,7 @@ async function run(): Promise<void> {
} }
const platforms: Platforms = JSON.parse(res.stdout.trim()); const platforms: Platforms = JSON.parse(res.stdout.trim());
core.info(`${platforms.supported.join(',')}`); core.info(`${platforms.supported.join(',')}`);
context.setOutput('platforms', platforms.supported.join(',')); core.setOutput('platforms', platforms.supported.join(','));
}); });
}); });
} catch (error) { } catch (error) {