From d7463ed316960a500d2b8ab1f18c046d6dfe0c7f Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 19 Nov 2024 13:49:43 +0100 Subject: [PATCH] Update webhooks --- .github/workflows/build_docker_image.yml | 8 +++++++- src/main.py | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_docker_image.yml b/.github/workflows/build_docker_image.yml index b33f8d5..c2b1e92 100644 --- a/.github/workflows/build_docker_image.yml +++ b/.github/workflows/build_docker_image.yml @@ -44,7 +44,7 @@ jobs: file: ./docker/build.dockerfile - - name: Invoke deployment hook (app) + name: Invoke deployment hook (game_list) uses: joelwmale/webhook-action@master with: url: ${{ secrets.WEBHOOK_URL }} @@ -60,3 +60,9 @@ jobs: uses: joelwmale/webhook-action@master with: url: ${{ secrets.WEBHOOK_URL_3 }} + + - + name: Invoke deployment hook (scheduler) + uses: joelwmale/webhook-action@master + with: + url: ${{ secrets.WEBHOOK_URL_4 }} diff --git a/src/main.py b/src/main.py index a154921..9f0a027 100644 --- a/src/main.py +++ b/src/main.py @@ -17,6 +17,9 @@ logger.setLevel(logging.INFO) async def main(): logger.info("Starting services...") + if len(sys.argv) != 2: + raise RuntimeError("Usage: python main.py ") + module = sys.argv[1] await mongo_manager.init()