From 7a89147ab5dbecd7ea8a9f6ed3de595c075c66e1 Mon Sep 17 00:00:00 2001 From: XelXen <78258352+XelXen@users.noreply.github.com> Date: Sat, 18 Jun 2022 20:36:55 +0530 Subject: [PATCH] Get API Info before compilation --- .github/workflows/tg-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tg-bot.yml b/.github/workflows/tg-bot.yml index bba73c419..fd2ffa93c 100644 --- a/.github/workflows/tg-bot.yml +++ b/.github/workflows/tg-bot.yml @@ -29,6 +29,7 @@ jobs: - name: Check for Execution Orders run: | cd .github + curl https://api.github.com/repos/${{ github.repository }}/commits/${{ github.sha }} > commit.json python checkrun.py - name: Patch and Compile @@ -49,7 +50,6 @@ jobs: echo "TG_API_ID = '${{ secrets.TG_API_ID }}'" >> tgconfig.py echo "TG_POST_ID = '${{ secrets.TG_POST_ID }}'" >> tgconfig.py echo "TG_API_HASH = '${{ secrets.TG_API_HASH }}'" >> tgconfig.py - curl https://api.github.com/repos/${{ github.repository }}/commits/${{ github.sha }} > commit.json python -m pip install --upgrade pip pip install python-telegram-bot python tg.py