Skip to content

Commit e81a89b

Browse files
authored
Merge pull request #63 from crazy-max/setOutput
Remove workaround for setOutput
2 parents bfc44ea + 2d3efc7 commit e81a89b

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.ts

-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as core from '@actions/core';
2-
import {issueCommand} from '@actions/core/lib/command';
32

43
export interface Inputs {
54
image: string;
@@ -12,8 +11,3 @@ export function getInputs(): Inputs {
1211
platforms: core.getInput('platforms') || 'all'
1312
};
1413
}
15-
16-
// FIXME: Temp fix https://github.com/actions/toolkit/issues/777
17-
export function setOutput(name: string, value: unknown): void {
18-
issueCommand('set-output', {name}, value);
19-
}

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function run(): Promise<void> {
4444
}
4545
const platforms: Platforms = JSON.parse(res.stdout.trim());
4646
core.info(`${platforms.supported.join(',')}`);
47-
context.setOutput('platforms', platforms.supported.join(','));
47+
core.setOutput('platforms', platforms.supported.join(','));
4848
});
4949
});
5050
} catch (error) {

0 commit comments

Comments
 (0)