mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 18:22:41 +00:00
back to prod
This commit is contained in:
parent
99c735228f
commit
040c643e88
1 changed files with 10 additions and 44 deletions
54
.github/workflows/publish-to-test-pypi.yml
vendored
54
.github/workflows/publish-to-test-pypi.yml
vendored
|
@ -54,28 +54,11 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the run ID of the triggered workflow
|
# Get the run ID of the triggered workflow
|
||||||
max_attempts=60 # Try for up to 1 minute
|
sleep 5 # Wait for workflow to be created
|
||||||
attempt=1
|
run_id=$(curl -s -H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
||||||
while true; do
|
"https://api.github.com/repos/meta-llama/llama-stack-client-python/actions/runs?event=repository_dispatch" \
|
||||||
sleep 1
|
| jq '.workflow_runs[0].id')
|
||||||
run_id=$(curl -s -H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
echo "workflow_id=$run_id" >> $GITHUB_OUTPUT
|
||||||
"https://api.github.com/repos/meta-llama/llama-stack-client-python/actions/runs?event=repository_dispatch" \
|
|
||||||
| jq '.workflow_runs[0].id')
|
|
||||||
|
|
||||||
if [ "$run_id" != "null" ] && [ -n "$run_id" ]; then
|
|
||||||
echo "Found workflow ID: $run_id"
|
|
||||||
echo "workflow_id=$run_id" >> $GITHUB_OUTPUT
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $attempt -ge $max_attempts ]; then
|
|
||||||
echo "Failed to get workflow ID after $max_attempts attempts"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Attempt $attempt: Workflow ID not found yet, retrying..."
|
|
||||||
attempt=$((attempt + 1))
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Trigger llama-models workflow
|
- name: Trigger llama-models workflow
|
||||||
id: trigger-models
|
id: trigger-models
|
||||||
|
@ -93,28 +76,11 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the run ID of the triggered workflow
|
# Get the run ID of the triggered workflow
|
||||||
max_attempts=60 # Try for up to 1 minute
|
sleep 5 # Wait for workflow to be created
|
||||||
attempt=1
|
run_id=$(curl -s -H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
||||||
while true; do
|
"https://api.github.com/repos/meta-llama/llama-models/actions/runs?event=repository_dispatch" \
|
||||||
sleep 1
|
| jq '.workflow_runs[0].id')
|
||||||
run_id=$(curl -s -H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
echo "workflow_id=$run_id" >> $GITHUB_OUTPUT
|
||||||
"https://api.github.com/repos/meta-llama/llama-models/actions/runs?event=repository_dispatch" \
|
|
||||||
| jq '.workflow_runs[0].id')
|
|
||||||
|
|
||||||
if [ "$run_id" != "null" ] && [ -n "$run_id" ]; then
|
|
||||||
echo "Found workflow ID: $run_id"
|
|
||||||
echo "workflow_id=$run_id" >> $GITHUB_OUTPUT
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $attempt -ge $max_attempts ]; then
|
|
||||||
echo "Failed to get workflow ID after $max_attempts attempts"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Attempt $attempt: Workflow ID not found yet, retrying..."
|
|
||||||
attempt=$((attempt + 1))
|
|
||||||
done
|
|
||||||
|
|
||||||
wait-for-workflows:
|
wait-for-workflows:
|
||||||
name: Wait for triggered workflows
|
name: Wait for triggered workflows
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue