From 55fbb55baaa453c25d855976d0977ab6f6a2d0bd Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Thu, 21 Sep 2023 07:19:10 +0000 Subject: [PATCH] Enhancement (ci): Remove ` $env:GITHUB_TOKEN` in `Update-Versions.ps1` --- Update-Versions.ps1 | 2 -- 1 file changed, 2 deletions(-) diff --git a/Update-Versions.ps1 b/Update-Versions.ps1 index 970083f..1b91132 100644 --- a/Update-Versions.ps1 +++ b/Update-Versions.ps1 @@ -42,8 +42,6 @@ try { Push-Location $repo } - $env:GITHUB_TOKEN = if ($env:GITHUB_TOKEN) { $env:GITHUB_TOKEN } else { (Get-Content ~/.git-credentials -Encoding utf8 -Force) -split "`n" | % { if ($_ -match '^https://[^:]+:([^:]+)@github.com') { $matches[1] } } | Select-Object -First 1 } - # Get my versions from generate/definitions/versions.json $versions = Get-Content $PSScriptRoot/generate/definitions/versions.json -Encoding utf8 | ConvertFrom-Json # Get new versions