Skip to content

Commit

Permalink
Merge pull request #63 from crazy-max/setOutput
Browse files Browse the repository at this point in the history
Remove workaround for setOutput
  • Loading branch information
crazy-max authored Oct 8, 2022
2 parents bfc44ea + 2d3efc7 commit e81a89b
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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 e81a89b

Please sign in to comment.