chore: clean up code

pull/390/head
Michael Smith 5 months ago
parent df53f96951
commit 2c7745ea71

@ -19,10 +19,7 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Terraform (REPLACE WITH CODER ACTION WHEN DONE) - name: Set up Terraform (REPLACE WITH CODER ACTION WHEN DONE)
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2 uses: coder/coder/.github/actions/setup-tf@main
with:
terraform_version: 1.9.8
terraform_wrapper: false
- name: Set up Bun - name: Set up Bun
uses: oven-sh/setup-bun@v2 uses: oven-sh/setup-bun@v2
with: with:

@ -5,8 +5,6 @@ import {
testRequiredVariables, testRequiredVariables,
} from "../test"; } from "../test";
console.log("DELETE ME BEFORE COMMITTING!!!!!");
const allowedDesktopEnvs = ["xfce", "kde", "gnome", "lxde", "lxqt"] as const; const allowedDesktopEnvs = ["xfce", "kde", "gnome", "lxde", "lxqt"] as const;
type AllowedDesktopEnv = (typeof allowedDesktopEnvs)[number]; type AllowedDesktopEnv = (typeof allowedDesktopEnvs)[number];

@ -202,7 +202,7 @@ export const runTerraformApply = async <TVars extends TerraformVariables>(
...process.env, ...process.env,
...(customEnv ?? {}), ...(customEnv ?? {}),
}; };
for (const [key, value] of Object.entries(vars)) { for (const [key, value] of Object.entries(vars) as [string, JsonValue][]) {
if (value !== null) { if (value !== null) {
combinedEnv[`TF_VAR_${key}`] = String(value); combinedEnv[`TF_VAR_${key}`] = String(value);
} }

Loading…
Cancel
Save