Skip to content

Commit

Permalink
chore: convert playground script args to env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinWilkinson committed Sep 5, 2024
1 parent 45b250f commit 54d0425
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/cicd/playground.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const _rootRepoDirPath = Deno.args[0];
const _token = Deno.args[1];
const _rootRepoDirPath = (Deno.env.get("ROOT_REPO_DIR_PATH") ?? "").trim().replaceAll("\\", "/");
const _token = (Deno.env.get("GITHUB_TOKEN") ?? "");
8 changes: 4 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"type": "node",
"program": "${workspaceFolder}/.github/cicd/playground.ts",
"cwd": "${workspaceFolder}",
"env": {
"ROOT_REPO_DIR_PATH": "${workspaceFolder}",
"GITHUB_TOKEN": "${env:CICD_TOKEN}",
},
"runtimeArgs": [
"run",
"--inspect-wait",
"--allow-all"
],
"args": [
"${workspaceFolder}",
"${env:CICD_TOKEN}",
],
"attachSimplePort": 9229,
"windows": {
"runtimeExecutable": "${userHome}/.deno/bin/deno.exe"
Expand Down

0 comments on commit 54d0425

Please sign in to comment.