fix fetching Telegram bot
This commit is contained in:
parent
96a3f5d987
commit
b44d0724ef
2
.github/workflows/Telegram.yml
vendored
2
.github/workflows/Telegram.yml
vendored
|
|
@ -12,7 +12,7 @@ jobs:
|
|||
steps:
|
||||
- name: Download bot
|
||||
run: |
|
||||
$headers = @{ Authorization: 'Bearer ${{ secrets.GITHUB_TOKEN }}' }
|
||||
$headers = @{ Authorization = 'Bearer ${{ secrets.GITHUB_TOKEN }}' }
|
||||
$botRelease = (Invoke-WebRequest -Headers $headers 'https://api.github.com/repos/bs-community/telegram-bot/releases/latest').Content | ConvertFrom-Json
|
||||
$botBinUrl = ((Invoke-WebRequest -Headers $headers $botRelease.assets_url).Content | ConvertFrom-Json).browser_download_url
|
||||
bash -c "curl --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' -fSL $botBinUrl -o bot"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user