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

Diff for: __tests__/context.test.ts

-35
This file was deleted.

Diff for: dist/index.js

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

Diff for: dist/index.js.map

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

Diff for: src/context.ts

-6
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-
}

Diff for: src/main.ts

+2-2
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)