mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 19:56:03 +00:00
fix: only set UV_INDEX_STRATEGY when UV_EXTRA_INDEX_URL is present
Prevents UV from complaining about empty UV_INDEX_STRATEGY value.
This commit is contained in:
parent
7ac81f69fe
commit
2da34182bd
1 changed files with 1 additions and 2 deletions
3
.github/actions/setup-runner/action.yml
vendored
3
.github/actions/setup-runner/action.yml
vendored
|
|
@ -28,12 +28,11 @@ runs:
|
|||
shell: bash
|
||||
env:
|
||||
UV_EXTRA_INDEX_URL: ${{ steps.client-config.outputs.uv-extra-index-url }}
|
||||
UV_INDEX_STRATEGY: ${{ steps.client-config.outputs.uv-extra-index-url && 'unsafe-best-match' || '' }}
|
||||
run: |
|
||||
# Export UV env vars to GITHUB_ENV so they persist across steps
|
||||
if [ -n "$UV_EXTRA_INDEX_URL" ]; then
|
||||
echo "UV_EXTRA_INDEX_URL=$UV_EXTRA_INDEX_URL" >> $GITHUB_ENV
|
||||
echo "UV_INDEX_STRATEGY=$UV_INDEX_STRATEGY" >> $GITHUB_ENV
|
||||
echo "UV_INDEX_STRATEGY=unsafe-best-match" >> $GITHUB_ENV
|
||||
echo "Exported UV environment variables for subsequent steps"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue