Skip to content

Commit b508e2e

Browse files
authored
chore: remove workaround for setOutput (#374)
Co-authored-by: CrazyMax <[email protected]>
1 parent 0ca84fc commit b508e2e

File tree

5 files changed

+4
-45
lines changed

5 files changed

+4
-45
lines changed

__tests__/context.test.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as os from 'os';
22
import * as core from '@actions/core';
3-
import {issueCommand} from '@actions/core/lib/command';
43

54
export const osPlat: string = os.platform();
65
export const osArch: string = os.arch();
@@ -22,8 +21,3 @@ export async function getInputs(): Promise<Inputs> {
2221
installOnly: core.getBooleanInput('install-only')
2322
};
2423
}
25-
26-
// FIXME: Temp fix https://github.com/actions/toolkit/issues/777
27-
export function setOutput(name: string, value: unknown): void {
28-
issueCommand('set-output', {name}, value);
29-
}

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ async function run(): Promise<void> {
6969
if (artifacts) {
7070
await core.group(`Artifacts output`, async () => {
7171
core.info(artifacts);
72-
context.setOutput('artifacts', artifacts);
72+
core.setOutput('artifacts', artifacts);
7373
});
7474
}
7575
const metadata = await goreleaser.getMetadata(await goreleaser.getDistPath(yamlfile));
7676
if (metadata) {
7777
await core.group(`Metadata output`, async () => {
7878
core.info(metadata);
79-
context.setOutput('metadata', metadata);
79+
core.setOutput('metadata', metadata);
8080
});
8181
}
8282
}

0 commit comments

Comments
 (0)