mirror of
https://github.com/run-llama/llamactl-deploy.git
synced 2026-07-01 21:24:01 -04:00
Merge pull request #2 from run-llama/adrian/fix-llamactl-flags
fix: align CLI flags with current llamactl
This commit is contained in:
@@ -8,7 +8,7 @@ Update a LlamaAgent deployment on LlamaCloud
|
||||
|
||||
### Inputs
|
||||
|
||||
| Name | Desscription | Required | Default |
|
||||
| Name | Description | Required | Default |
|
||||
|------|--------------|----------|---------|
|
||||
| `llama-cloud-api-key` | API key for LlamaCloud | true | `''` |
|
||||
| `llama-cloud-project-id` | Project ID for LlamaCloud | true | `''` |
|
||||
|
||||
+7
-12
@@ -33,24 +33,19 @@ runs:
|
||||
LLAMA_CLOUD_API_KEY: ${{ inputs.llama-cloud-api-key }}
|
||||
LLAMA_CLOUD_PROJECT_ID: ${{ inputs.llama-cloud-project-id }}
|
||||
run: |
|
||||
uvx llamactl auth token --project-id $LLAMA_CLOUD_PROJECT_ID --api-key $LLAMA_CLOUD_API_KEY --no-interactive
|
||||
uvx llamactl auth token --project "$LLAMA_CLOUD_PROJECT_ID" --api-key "$LLAMA_CLOUD_API_KEY"
|
||||
shell: bash
|
||||
|
||||
- name: Update deployment (without git reference)
|
||||
if: inputs.git-reference == ''
|
||||
env:
|
||||
DEPLOYMENT_ID: ${{ inputs.deployment-id }}
|
||||
run: |
|
||||
uvx llamactl deployments update $DEPLOYMENT_ID --no-interactive
|
||||
shell: bash
|
||||
|
||||
- name: Update deployment (with git reference)
|
||||
if: inputs.git-reference != ''
|
||||
- name: Update deployment
|
||||
env:
|
||||
DEPLOYMENT_ID: ${{ inputs.deployment-id }}
|
||||
GIT_REFERENCE: ${{ inputs.git-reference }}
|
||||
run: |
|
||||
uvx llamactl deployments update $DEPLOYMENT_ID --git-ref $GIT_REFERENCE --no-interactive
|
||||
if [ -n "$GIT_REFERENCE" ]; then
|
||||
uvx llamactl deployments update "$DEPLOYMENT_ID" --git-ref "$GIT_REFERENCE"
|
||||
else
|
||||
uvx llamactl deployments update "$DEPLOYMENT_ID"
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
branding:
|
||||
|
||||
Reference in New Issue
Block a user