From 36ce0178f6e50544d94ea67881c65d52ef4a6a81 Mon Sep 17 00:00:00 2001 From: luvletter2333 Date: Tue, 12 Jul 2022 22:49:10 +0800 Subject: [PATCH] try fix CI bot api --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89f7f13a6..ba8afbd8c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -382,7 +382,13 @@ jobs: - name: Release run: | chmod +x telegram-bot-api-binary - ./telegram-bot-api-binary --api-id=21724 --api-hash=3e0cb5efcd52300aec5994fdfc5bdc16 --local 2>&1 > /dev/null & + function start() { + ./telegram-bot-api-binary --api-id=21724 --api-hash=3e0cb5efcd52300aec5994fdfc5bdc16 --local 2>&1 > /dev/null & + } + start + curl http://127.0.0.1:8081/ & start + curl http://127.0.0.1:8081/ & start + curl http://127.0.0.1:8081/ & start curl http://127.0.0.1:8081/bot${{ secrets.TELEGRAM_TOKEN }}/sendMessage \ -X POST \ -F chat_id="${{ secrets.TELEGRAM_CHANNEL }}" \