diff --git a/.circleci/config.yml b/.circleci/config.yml index ee5235467..b3e170854 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,6 +8,19 @@ jobs: steps: - checkout + - run: + name: Trigger Github Action for new Docker Container + command: | + echo "Install TOML package." + python3 -m pip install toml + VERSION=$(python3 -c "import toml; print(toml.load('pyproject.toml')['tool']['poetry']['version'])") + echo "LiteLLM Version ${VERSION}" + curl -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: Bearer $GITHUB_TOKEN" \ + "https://api.github.com/repos/BerriAI/litellm/actions/workflows/ghcr_deploy.yml/dispatches" \ + -d "{\"ref\":\"main\", \"inputs\":{\"tag\":\"${VERSION}\"}}" + - run: name: Check if litellm dir was updated or if pyproject.toml was modified command: |