mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-04 12:39:07 +08:00
test github token
This commit is contained in:
parent
b5ae5eb711
commit
fd12ece9af
3
.github/workflows/vendor.yml
vendored
3
.github/workflows/vendor.yml
vendored
@ -33,8 +33,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
Write-Host ${{ secrets.GITHUB_TOKEN }}
|
$env:GITHUB_TOKEN = "${{ secrets.GITHUB_TOKEN }}"
|
||||||
dir env
|
|
||||||
$currentVersion = (Get-Content .\vendor\sources.json | ConvertFrom-Json)
|
$currentVersion = (Get-Content .\vendor\sources.json | ConvertFrom-Json)
|
||||||
. .\scripts\update.ps1 -verbose
|
. .\scripts\update.ps1 -verbose
|
||||||
Set-GHVariable -Name COUNT_UPDATED -Value $count
|
Set-GHVariable -Name COUNT_UPDATED -Value $count
|
||||||
|
@ -108,6 +108,8 @@ function Fetch-DownloadUrl {
|
|||||||
$headers["Authorization"] = "token $($env:GITHUB_TOKEN)"
|
$headers["Authorization"] = "token $($env:GITHUB_TOKEN)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Host $headers
|
||||||
|
|
||||||
# Api server for GitHub
|
# Api server for GitHub
|
||||||
$urlHost = "api.github.com"
|
$urlHost = "api.github.com"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user