test github token

This commit is contained in:
David Refoua 2022-12-25 17:49:14 +00:00
parent b5ae5eb711
commit fd12ece9af
2 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Write-Host ${{ secrets.GITHUB_TOKEN }}
dir env
$env:GITHUB_TOKEN = "${{ secrets.GITHUB_TOKEN }}"
$currentVersion = (Get-Content .\vendor\sources.json | ConvertFrom-Json)
. .\scripts\update.ps1 -verbose
Set-GHVariable -Name COUNT_UPDATED -Value $count

View File

@ -108,6 +108,8 @@ function Fetch-DownloadUrl {
$headers["Authorization"] = "token $($env:GITHUB_TOKEN)"
}
Write-Host $headers
# Api server for GitHub
$urlHost = "api.github.com"