Fix CI
This commit is contained in:
parent
4a6ad15217
commit
dec36d0771
9
.github/workflows/Telegram.yml
vendored
9
.github/workflows/Telegram.yml
vendored
|
|
@ -10,8 +10,15 @@ jobs:
|
||||||
name: Send Message
|
name: Send Message
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Download bot
|
||||||
|
run: |
|
||||||
|
$botRelease = (Invoke-WebRequest 'https://api.github.com/repos/bs-community/telegram-bot/releases/latest').Content | ConvertFrom-Json
|
||||||
|
$botBinUrl = ((Invoke-WebRequest $botRelease.assets_url).Content | ConvertFrom-Json).browser_download_url
|
||||||
|
bash -c "curl -fSL $botBinUrl -o bot"
|
||||||
|
chmod +x ./bot
|
||||||
|
shell: pwsh
|
||||||
- name: Run bot
|
- name: Run bot
|
||||||
run: ./scripts/bot.ps1
|
run: ./bot diff
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
$botRelease = (Invoke-WebRequest 'https://api.github.com/repos/bs-community/telegram-bot/releases/latest').Content | ConvertFrom-Json
|
|
||||||
$botBinUrl = ((Invoke-WebRequest $botRelease.assets_url).Content | ConvertFrom-Json).browser_download_url
|
|
||||||
|
|
||||||
bash -c "curl -fSL $botBinUrl -o bot"
|
|
||||||
chmod +x ./bot
|
|
||||||
./bot diff
|
|
||||||
Loading…
Reference in New Issue
Block a user