Refresh env
ps1
function refresh-tokens {
$env:GITHUB_ACCESS_TOKEN = [System.Environment]::GetEnvironmentVariable("GITHUB_ACCESS_TOKEN","User")
$env:GITHUB_PACKAGES_READ_TOKEN = [System.Environment]::GetEnvironmentVariable("GITHUB_PACKAGES_READ_TOKEN","User")
$env:GITHUB_PACKAGES_DELETE_TOKEN = [System.Environment]::GetEnvironmentVariable("GITHUB_PACKAGES_DELETE_TOKEN","User")
$env:GITHUB_PACKAGES_WRITE_TOKEN = [System.Environment]::GetEnvironmentVariable("GITHUB_PACKAGES_WRITE_TOKEN","User")
}
refresh-tokens
function refresh-path {
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") +
";" +
[System.Environment]::GetEnvironmentVariable("Path","User")
}
refresh-path
Dont copy and paste this code, it's not fair, but ... in case of blc
ps1
function refresh-tokens {
$env:GITHUB_ACCESS_TOKEN = [System.Environment]::GetEnvironmentVariable("GITHUB_ACCESS_TOKEN","User")
$env:GITHUB_PACKAGES_READ_TOKEN = [System.Environment]::GetEnvironmentVariable("GITHUB_ACCESS_TOKEN","User")
$env:GITHUB_PACKAGES_DELETE_TOKEN = [System.Environment]::GetEnvironmentVariable("GITHUB_ACCESS_TOKEN","User")
$env:GITHUB_PACKAGES_WRITE_TOKEN = [System.Environment]::GetEnvironmentVariable("GITHUB_ACCESS_TOKEN","User")
}
refresh-tokens
function refresh-path {
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") +
";" +
[System.Environment]::GetEnvironmentVariable("Path","User")
}
refresh-path