Skip to content

Commit

Permalink
Merge pull request #152 from crazy-max/setOutput
Browse files Browse the repository at this point in the history
Remove setOutput workaround
  • Loading branch information
crazy-max authored Oct 18, 2022
2 parents 30ad2d5 + 5b91b20 commit 111c561
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 47 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,5 +1,4 @@
import * as core from '@actions/core';
import {issueCommand} from '@actions/core/lib/command';

export interface Inputs {
gpgPrivateKey: string;
Expand Down Expand Up @@ -30,8 +29,3 @@ export async function getInputs(): Promise<Inputs> {
fingerprint: core.getInput('fingerprint')
};
}

// FIXME: Temp fix https://github.com/actions/toolkit/issues/777
export function setOutput(name: string, value: any): void {
issueCommand('set-output', {name}, value);
}
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ async function run(): Promise<void> {

await core.group(`Setting outputs`, async () => {
core.info(`fingerprint=${fingerprint}`);
context.setOutput('fingerprint', fingerprint);
core.setOutput('fingerprint', fingerprint);
core.info(`keyid=${privateKey.keyID}`);
context.setOutput('keyid', privateKey.keyID);
core.setOutput('keyid', privateKey.keyID);
core.info(`name=${privateKey.name}`);
context.setOutput('name', privateKey.name);
core.setOutput('name', privateKey.name);
core.info(`email=${privateKey.email}`);
context.setOutput('email', privateKey.email);
core.setOutput('email', privateKey.email);
});

if (inputs.gitUserSigningkey) {
Expand Down

0 comments on commit 111c561

Please sign in to comment.