Update main.yml #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger Deployment Hook | |
on: | |
push: | |
branches: | |
- main # Change this to your main branch name | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# Your build and deployment steps go here | |
- name: Find latest deployment | |
id: latest_deployment | |
run: | | |
latest_deployment_url=$(curl -sSf -X GET "https://api.vercel.com/v12/now/deployments?projectId=ut-bot-deploy&limit=1" \ | |
-H "Authorization: Bearer 4EMYs0YWWJQrhQYIVDGzIFkR" \ | |
-H "Content-Type: application/json" \ | |
| jq -r '.deployments[0].url') | |
echo "::set-output name=deployment_url::$latest_deployment_url" | |
- name: Wait for Deployment | |
run: | | |
deployment_url="${{ steps.latest_deployment.outputs.deployment_url }}" | |
# Command to wait for the deployment to be ready | |
while ! curl -sSLf "${deployment_url}" >/dev/null; do | |
sleep 30 | |
done | |
- name: Install ChromaDB | |
run: | | |
pip install chromadb |