mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 18:22:41 +00:00
test wait
This commit is contained in:
parent
5b8b809c67
commit
83662306fd
1 changed files with 7 additions and 7 deletions
14
.github/workflows/publish-to-test-pypi.yml
vendored
14
.github/workflows/publish-to-test-pypi.yml
vendored
|
@ -107,35 +107,35 @@ jobs:
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 30
|
sleep 10
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Wait for models workflow
|
- name: Wait for models workflow
|
||||||
run: |
|
run: |
|
||||||
while true; do
|
while true; do
|
||||||
status=$(curl -s -H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
status=$(curl -s -H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
||||||
"https://api.github.com/repos/meta-llama/llama-models/actions/runs/${{ needs.trigger-client-and-models-build.outputs.models_run_id }}" \
|
"https://api.github.com/repos/meta-llama/llama-models/actions/runs/${{ needs.trigger-client-and-models-build.outputs.model_run_id }}" \
|
||||||
| jq -r '.status')
|
| jq -r '.status')
|
||||||
conclusion=$(curl -s -H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
conclusion=$(curl -s -H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
||||||
"https://api.github.com/repos/meta-llama/llama-models/actions/runs/${{ needs.trigger-client-and-models-build.outputs.models_run_id }}" \
|
"https://api.github.com/repos/meta-llama/llama-models/actions/runs/${{ needs.trigger-client-and-models-build.outputs.model_run_id }}" \
|
||||||
| jq -r '.conclusion')
|
| jq -r '.conclusion')
|
||||||
|
|
||||||
echo "Models workflow status: $status, conclusion: $conclusion"
|
echo "Client workflow status: $status, conclusion: $conclusion"
|
||||||
|
|
||||||
if [ "$status" = "completed" ]; then
|
if [ "$status" = "completed" ]; then
|
||||||
if [ "$conclusion" != "success" ]; then
|
if [ "$conclusion" != "success" ]; then
|
||||||
echo "Models workflow failed"
|
echo "Client workflow failed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 30
|
sleep 10
|
||||||
done
|
done
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build distribution 📦
|
name: Build distribution 📦
|
||||||
needs: trigger-client-and-models-build # Wait for client build to complete
|
needs: wait-for-workflows
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue