Skip to content

Commit 111c561

Browse files
authored
Merge pull request #152 from crazy-max/setOutput
Remove setOutput workaround
2 parents 30ad2d5 + 5b91b20 commit 111c561

File tree

5 files changed

+6
-47
lines changed

5 files changed

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

43
export interface Inputs {
54
gpgPrivateKey: string;
@@ -30,8 +29,3 @@ export async function getInputs(): Promise<Inputs> {
3029
fingerprint: core.getInput('fingerprint')
3130
};
3231
}
33-
34-
// FIXME: Temp fix https://github.com/actions/toolkit/issues/777
35-
export function setOutput(name: string, value: any): void {
36-
issueCommand('set-output', {name}, value);
37-
}

src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ async function run(): Promise<void> {
8383

8484
await core.group(`Setting outputs`, async () => {
8585
core.info(`fingerprint=${fingerprint}`);
86-
context.setOutput('fingerprint', fingerprint);
86+
core.setOutput('fingerprint', fingerprint);
8787
core.info(`keyid=${privateKey.keyID}`);
88-
context.setOutput('keyid', privateKey.keyID);
88+
core.setOutput('keyid', privateKey.keyID);
8989
core.info(`name=${privateKey.name}`);
90-
context.setOutput('name', privateKey.name);
90+
core.setOutput('name', privateKey.name);
9191
core.info(`email=${privateKey.email}`);
92-
context.setOutput('email', privateKey.email);
92+
core.setOutput('email', privateKey.email);
9393
});
9494

9595
if (inputs.gitUserSigningkey) {

0 commit comments

Comments
 (0)