From da98070135aaa7327e213985bdebf361e31e67ff Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Thu, 4 Jan 2024 15:47:23 +0530 Subject: [PATCH] (ci/cd) test --- .circleci/config.yml | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b3e170854..3c17b4fc0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,17 +9,17 @@ jobs: - 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}\"}}" + name: test-release + command: | + echo "Install TOML package." + python -m pip install toml + VERSION=$(python -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 @@ -156,6 +156,15 @@ jobs: -H "Authorization: Bearer $GITHUB_TOKEN" \ "https://api.github.com/repos/BerriAI/litellm/actions/workflows/ghcr_deploy.yml/dispatches" \ -d "{\"ref\":\"main\", \"inputs\":{\"tag\":\"${VERSION}\"}}" + echo "Install TOML package." + python -m pip install toml + VERSION=$(python -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}\"}}" workflows: version: 2