Skip to content

Commit cc582c8

Browse files
committed
Fix CI
This change fixes `gpg: Can't check signature: No public key`.
1 parent 7e29321 commit cc582c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/swiftly/installers/linux.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { machine } from "os";
22
import { addPath, debug, info } from "@actions/core";
33
import { downloadTool, find, extractTar, cacheDir } from "@actions/tool-cache";
4-
import { verify } from "../../core/gpg";
5-
import { cmd } from "../../core";
4+
import { setupKeys, verify } from "../../core/gpg";
5+
import { cmd, getOS } from "../../core";
66

77
interface Options {
88
/** Skip signature verification */
@@ -44,6 +44,8 @@ async function download({ skipVerifySignature = false }: Options = {}) {
4444
if (skipVerifySignature) {
4545
info("Skipping signature verification");
4646
} else {
47+
const os = await getOS();
48+
await setupKeys(os);
4749
await verify(signature, pkg);
4850
}
4951

0 commit comments

Comments
 (0)