We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 903b06d commit 064f70cCopy full SHA for 064f70c
src/swiftly/swiftly.ts
@@ -1,4 +1,4 @@
1
-import { debug, info } from "@actions/core";
+import { addPath, debug, info } from "@actions/core";
2
import { cmd } from "../core";
3
4
async function swiftly(...args: string[]) {
@@ -21,6 +21,8 @@ export async function installSwift(version: string) {
21
info(`Installing Swift ${version}`);
22
await swiftly("install", "--use", version, "--assume-yes");
23
24
- const location = swiftly("use", "--print-location");
+ const location = await swiftly("use", "--print-location");
25
debug(`Swiftly installed Swift to ${location}`);
26
+
27
+ addPath(location);
28
}
0 commit comments