Skip to content

Commit

Permalink
Merge pull request #47 from theohbrothers/enhancement/ci-remove-env-g…
Browse files Browse the repository at this point in the history
…ithub-token-in-update-versions.ps1

Enhancement (ci): Remove ` $env:GITHUB_TOKEN` in `Update-Versions.ps1`
  • Loading branch information
leojonathanoh authored Sep 21, 2023
2 parents 6dcfdeb + 55fbb55 commit 179fc9a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Update-Versions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 179fc9a

Please sign in to comment.