Skip to content

Commit 5afa18a

Browse files
committed
Check variables after init
1 parent 8e63180 commit 5afa18a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/swiftly/install-linux.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export async function setupLinux(options: Options) {
2626
addPath(path);
2727

2828
debug(`Added Swiftly to PATH: ${path}`);
29-
debug(`SWIFTLY_HOME_DIR: ${process.env.SWIFTLY_HOME_DIR}`);
30-
debug(`SWIFTLY_BIN_DIR: ${process.env.SWIFTLY_BIN_DIR}`);
3129
}
3230

3331
async function download({ skipVerifySignature = false }: Options = {}) {

src/swiftly/swiftly.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { info } from "@actions/core";
1+
import { debug, info } from "@actions/core";
22
import { cmd } from "../core";
33

44
async function swiftly(...args: string[]) {
@@ -18,6 +18,9 @@ export async function installSwift(version: string) {
1818
"--assume-yes",
1919
);
2020

21+
debug(`SWIFTLY_HOME_DIR: ${process.env.SWIFTLY_HOME_DIR}`);
22+
debug(`SWIFTLY_BIN_DIR: ${process.env.SWIFTLY_BIN_DIR}`);
23+
2124
info(`Installing Swift ${version}`);
2225
await swiftly("install", "--use", version, "--assume-yes");
2326
}

0 commit comments

Comments
 (0)