mirror of https://github.com/NekoX-Dev/NekoX.git
ci: fix send build
This commit is contained in:
parent
93a286ba44
commit
b87cd3624d
|
@ -415,7 +415,13 @@ jobs:
|
|||
- name: Send Build
|
||||
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
|
||||
apk=$(find TMessagesProj/build/outputs/apk/mini/release -name '*arm64-v8a*.apk' | head -n 1)
|
||||
curl http://127.0.0.1:8081/bot${{ secrets.HELPER_BOT_TOKEN }}/sendDocument \
|
||||
-X POST \
|
||||
|
|
|
@ -386,9 +386,9 @@ jobs:
|
|||
./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/ || 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 }}" \
|
||||
|
|
Loading…
Reference in New Issue