Skip to content

Commit a90d258

Browse files
committed
Pass skip flag
1 parent ded451b commit a90d258

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ inputs:
55
swift-version:
66
description: Swift version to configure
77
required: true
8-
default: "6.1.0"
8+
default: "latest"
9+
skip-verify-signature:
10+
description: Skip GPG signature verification where applicable
11+
default: false
912
outputs:
1013
version:
1114
description: The full Swift version that was configured

src/main.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ import { EOL } from "os";
22
import { equalVersions, getOS } from "./core";
33
import { installSwift, setupLinux, setupMacOS } from "./swiftly";
44
import { currentVersion } from "./swift";
5-
import { error, getInput, info, setFailed, setOutput } from "@actions/core";
5+
import {
6+
error,
7+
getBooleanInput,
8+
getInput,
9+
info,
10+
setFailed,
11+
setOutput,
12+
} from "@actions/core";
613
import { setupWindows } from "./windows";
714

815
/**
@@ -11,6 +18,7 @@ import { setupWindows } from "./windows";
1118
async function run() {
1219
try {
1320
const version = getInput("swift-version", { required: true });
21+
const skipVerifySignature = getBooleanInput("skip-verify-signature");
1422
const os = await getOS();
1523

1624
// First check if the requested version is already installed
@@ -28,7 +36,7 @@ async function run() {
2836
await installSwift(version);
2937
break;
3038
case "linux":
31-
await setupLinux({ skipVerifySignature: true });
39+
await setupLinux({ skipVerifySignature });
3240
await installSwift(version);
3341
break;
3442
case "win32":

0 commit comments

Comments
 (0)