(ci/cd) tag the correct version

This commit is contained in:
ishaan-jaff 2024-01-04 15:40:44 +05:30
parent 58bcdfff59
commit c19195131c

View file

@ -134,11 +134,15 @@ jobs:
- run: - run:
name: Trigger Github Action for new Docker Container name: Trigger Github Action for new Docker Container
command: | command: |
curl -X POST \ echo "Install TOML package."
-H "Accept: application/vnd.github.v3+json" \ python3 -m pip install toml
-H "Authorization: Bearer $GITHUB_TOKEN" \ VERSION=$(python3 -c "import toml; print(toml.load('pyproject.toml')['tool']['poetry']['version'])")
"https://api.github.com/repos/BerriAI/litellm/actions/workflows/ghcr_deploy.yml/dispatches" \ echo "LiteLLM Version ${VERSION}"
-d '{"ref":"main"}' 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: workflows:
version: 2 version: 2