Skip to content

Commit

Permalink
Fix env file
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Sep 19, 2024
1 parent 731caaa commit 74cb658
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/Sync-Env.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ if ($CI) { Add-Content $Env:GITHUB_PATH ("$PWD/.venv/bin", "$PWD/.venv/scripts")
# ? Track environment variables to update `.env` with later
$EnvVars = @{}
$EnvVars.Add('PYRIGHT_PYTHON_PYLANCE_VERSION', $PylanceVersion)
if (!(Test-Path ($EnvFile = "$PWD/$($Env:GITHUB_ENV ? $Env:GITHUB_ENV : '.env')"))) {
New-Item $EnvFile
}
$EnvFile = $Env:GITHUB_ENV ? $Env:GITHUB_ENV : "$PWD/.env"
if (!(Test-Path $EnvFile)) { New-Item $EnvFile }
# ? Get environment variables from `pyproject.toml`
dev init-shell |
Select-String -Pattern '^(.+)=(.+)$' |
Expand Down

0 comments on commit 74cb658

Please sign in to comment.