Skip to content

Commit aae088b

Browse files
committed
Cleanup
1 parent df2c979 commit aae088b

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

dist/index.js

Lines changed: 6 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as core from '@actions/core';
22
import * as gpg from './gpg';
33
import * as openpgp from './openpgp';
44
import * as stateHelper from './state-helper';
5-
import * as exec from '@actions/exec';
65
import os from 'os';
76

87
async function run(): Promise<void> {
@@ -18,7 +17,6 @@ async function run(): Promise<void> {
1817
}
1918

2019
core.info('📣 GnuPG info');
21-
await exec.exec('which', ['gpg']);
2220
const version = await gpg.getVersion();
2321
const dirs = await gpg.getDirs();
2422
core.info(`Version : ${version.gnupg} (libgcrypt ${version.libgcrypt})`);
@@ -27,27 +25,27 @@ async function run(): Promise<void> {
2725
core.info(`Datadir : ${dirs.datadir}`);
2826
core.info(`Homedir : ${dirs.homedir}`);
2927

30-
core.info('🔮 Checking signing key...');
28+
core.info('🔮 Checking signing key');
3129
const privateKey = await openpgp.readPrivateKey(process.env.SIGNING_KEY);
3230
core.debug(`Fingerprint : ${privateKey.fingerprint}`);
3331
core.debug(`KeyID : ${privateKey.keyID}`);
3432
core.debug(`UserID : ${privateKey.userID}`);
3533
core.debug(`CreationTime : ${privateKey.creationTime}`);
3634

37-
core.info('🔑 Importing secret key...');
35+
core.info('🔑 Importing secret key');
3836
await gpg.importKey(process.env.SIGNING_KEY).then(stdout => {
3937
core.debug(stdout);
4038
});
4139

4240
if (process.env.PASSPHRASE) {
43-
core.info('⚙️ Configuring GnuPG agent...');
41+
core.info('⚙️ Configuring GnuPG agent');
4442
await gpg.configureAgent(gpg.agentConfig);
4543

46-
core.info('📌 Getting keygrip...');
44+
core.info('📌 Getting keygrip');
4745
const keygrip = await gpg.getKeygrip(privateKey.fingerprint);
4846
core.debug(`${keygrip}`);
4947

50-
core.info('🔓 Preset passphrase...');
48+
core.info('🔓 Preset passphrase');
5149
await gpg.presetPassphrase(keygrip, process.env.PASSPHRASE).then(stdout => {
5250
core.debug(stdout);
5351
});
@@ -63,7 +61,7 @@ async function cleanup(): Promise<void> {
6361
return;
6462
}
6563
try {
66-
core.info('🚿 Removing keys...');
64+
core.info('🚿 Removing keys');
6765
const privateKey = await openpgp.readPrivateKey(process.env.SIGNING_KEY);
6866
await gpg.deleteKey(privateKey.fingerprint);
6967
} catch (error) {

0 commit comments

Comments
 (0)