mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 19:56:03 +00:00
chore: add backward compatibility in CI
Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
44e36ce48d
commit
0671189e34
1 changed files with 20 additions and 9 deletions
29
.github/workflows/conformance.yml
vendored
29
.github/workflows/conformance.yml
vendored
|
|
@ -111,16 +111,27 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check base branch
|
|
||||||
if [ -f "base/docs/static/stable-llama-stack-spec.json" ]; then
|
# Handles old YAML specs
|
||||||
echo "✓ Found stable API spec in base branch"
|
# TODO: remove this once the JSON specs are merged
|
||||||
BASE_SPEC="base/docs/static/stable-llama-stack-spec.json"
|
if [ -f "docs/static/stable-llama-stack-spec.yaml" ]; then
|
||||||
elif [ -f "base/docs/static/llama-stack-spec.json" ]; then
|
echo "✓ Found legacy YAML format stable API spec in current branch"
|
||||||
echo "✓ Found monolithic API spec in base branch"
|
BASE_SPEC="docs/static/stable-llama-stack-spec.yaml"
|
||||||
BASE_SPEC="base/docs/static/llama-stack-spec.json"
|
elif [ -f "docs/static/llama-stack-spec.yaml" ]; then
|
||||||
|
echo "✓ Found legacy YAML format monolithic API spec in current branch"
|
||||||
|
BASE_SPEC="docs/static/llama-stack-spec.yaml"
|
||||||
else
|
else
|
||||||
echo "❌ No API specs found in base branch"
|
echo "No legacy YAML format API specs found in current branch, trying JSON specs"
|
||||||
exit 1
|
if [ -f "base/docs/static/stable-llama-stack-spec.json" ]; then
|
||||||
|
echo "✓ Found stable API spec in base branch"
|
||||||
|
BASE_SPEC="base/docs/static/stable-llama-stack-spec.json"
|
||||||
|
elif [ -f "base/docs/static/llama-stack-spec.json" ]; then
|
||||||
|
echo "✓ Found monolithic API spec in base branch"
|
||||||
|
BASE_SPEC="base/docs/static/llama-stack-spec.json"
|
||||||
|
else
|
||||||
|
echo "❌ No API specs found in base branch"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Export for next step
|
# Export for next step
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue