mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 19:56:03 +00:00
fix: export UV env vars to GITHUB_ENV in setup-runner
UV env vars need to persist across workflow steps for scripts that run 'uv' commands (like unit-tests.sh which uses 'uv run --with-editable'). Export them to GITHUB_ENV so they're available in subsequent steps.
This commit is contained in:
parent
dea3f8f5b0
commit
51f3aeb479
1 changed files with 8 additions and 0 deletions
8
.github/actions/setup-runner/action.yml
vendored
8
.github/actions/setup-runner/action.yml
vendored
|
|
@ -31,6 +31,14 @@ runs:
|
||||||
UV_EXTRA_INDEX_URL: ${{ steps.client-config.outputs.uv-extra-index-url }}
|
UV_EXTRA_INDEX_URL: ${{ steps.client-config.outputs.uv-extra-index-url }}
|
||||||
UV_INDEX_STRATEGY: ${{ steps.client-config.outputs.uv-index-url && 'unsafe-best-match' || '' }}
|
UV_INDEX_STRATEGY: ${{ steps.client-config.outputs.uv-index-url && 'unsafe-best-match' || '' }}
|
||||||
run: |
|
run: |
|
||||||
|
# Export UV env vars to GITHUB_ENV so they persist across steps
|
||||||
|
if [ -n "$UV_INDEX_URL" ]; then
|
||||||
|
echo "UV_INDEX_URL=$UV_INDEX_URL" >> $GITHUB_ENV
|
||||||
|
echo "UV_EXTRA_INDEX_URL=$UV_EXTRA_INDEX_URL" >> $GITHUB_ENV
|
||||||
|
echo "UV_INDEX_STRATEGY=$UV_INDEX_STRATEGY" >> $GITHUB_ENV
|
||||||
|
echo "Exported UV environment variables for subsequent steps"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Updating project dependencies via uv sync"
|
echo "Updating project dependencies via uv sync"
|
||||||
uv sync --all-groups
|
uv sync --all-groups
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue