Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove workaround for setOutput
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
CrazyMax committed Oct 8, 2022
1 parent bfc44ea commit 2d3efc7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions src/context.ts
@@ -1,5 +1,4 @@
import * as core from '@actions/core';
import {issueCommand} from '@actions/core/lib/command';

export interface Inputs {
image: string;
Expand All @@ -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);
}
2 changes: 1 addition & 1 deletion src/main.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit 2d3efc7

Please sign in to comment.