mirror of
https://github.com/docker/setup-qemu-action.git
synced 2024-11-15 15:33:52 +08:00
Merge pull request #63 from crazy-max/setOutput
Remove workaround for setOutput
This commit is contained in:
commit
e81a89b173
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -1,5 +1,4 @@
|
||||
import * as core from '@actions/core';
|
||||
import {issueCommand} from '@actions/core/lib/command';
|
||||
|
||||
export interface Inputs {
|
||||
image: string;
|
||||
@ -12,8 +11,3 @@ export function getInputs(): Inputs {
|
||||
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);
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ async function run(): Promise<void> {
|
||||
}
|
||||
const platforms: Platforms = JSON.parse(res.stdout.trim());
|
||||
core.info(`${platforms.supported.join(',')}`);
|
||||
context.setOutput('platforms', platforms.supported.join(','));
|
||||
core.setOutput('platforms', platforms.supported.join(','));
|
||||
});
|
||||
});
|
||||
} catch (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user