Skip to content

Commit

Permalink
chore: remove workaround for setOutput (#374)
Browse files Browse the repository at this point in the history
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max and crazy-max authored Oct 16, 2022
1 parent 0ca84fc commit b508e2e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 45 deletions.
35 changes: 0 additions & 35 deletions __tests__/context.test.ts

This file was deleted.

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,6 +1,5 @@
import * as os from 'os';
import * as core from '@actions/core';
import {issueCommand} from '@actions/core/lib/command';

export const osPlat: string = os.platform();
export const osArch: string = os.arch();
Expand All @@ -22,8 +21,3 @@ export async function getInputs(): Promise<Inputs> {
installOnly: core.getBooleanInput('install-only')
};
}

// FIXME: Temp fix https://github.com/actions/toolkit/issues/777
export function setOutput(name: string, value: unknown): void {
issueCommand('set-output', {name}, value);
}
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ async function run(): Promise<void> {
if (artifacts) {
await core.group(`Artifacts output`, async () => {
core.info(artifacts);
context.setOutput('artifacts', artifacts);
core.setOutput('artifacts', artifacts);
});
}
const metadata = await goreleaser.getMetadata(await goreleaser.getDistPath(yamlfile));
if (metadata) {
await core.group(`Metadata output`, async () => {
core.info(metadata);
context.setOutput('metadata', metadata);
core.setOutput('metadata', metadata);
});
}
}
Expand Down

0 comments on commit b508e2e

Please sign in to comment.