mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-31 09:10:15 +00:00
Bumps [readmeio/rdme](https://github.com/readmeio/rdme) from 8.3.1 to 8.6.6. - [Release notes](https://github.com/readmeio/rdme/releases) - [Changelog](https://github.com/readmeio/rdme/blob/next/CHANGELOG.md) - [Commits](https://github.com/readmeio/rdme/compare/8.3.1...8.6.6) --- updated-dependencies: - dependency-name: readmeio/rdme dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
name: Sync OpenAPI Schema with Readme
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
# release branches have the form v1.9.x
|
|
- "v[0-9].*[0-9].x"
|
|
|
|
env:
|
|
PYTHON_VERSION: "3.8"
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ env.PYTHON_VERSION }}
|
|
|
|
- name: Install dependencies
|
|
run: sudo apt update && sudo apt-get install libsndfile1 ffmpeg
|
|
|
|
- name: Install Haystack
|
|
run: |
|
|
pip install --upgrade pip
|
|
pip install -U -e .[all,dev]
|
|
pip install -e ./rest_api
|
|
|
|
- name: Update OpenAPI specs
|
|
run: python .github/utils/generate_openapi_specs.py
|
|
|
|
- name: Get OpenAPI specs id
|
|
id: openapi-specs
|
|
env:
|
|
README_API_KEY: ${{ secrets.README_API_KEY }}
|
|
run: |
|
|
VERSION="$(cut -d "." -f 1,2 < VERSION.txt)"
|
|
if [[ "$(cat VERSION.txt)" == *"rc0" ]]; then
|
|
VERSION="$VERSION-unstable"
|
|
fi
|
|
SPECS_ID=$(curl https://dash.readme.com/api/v1/api-specification \
|
|
-u "$README_API_KEY:" \
|
|
--header "x-readme-version: $VERSION" \
|
|
| jq -r ".[0].id")
|
|
echo "id=$SPECS_ID" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Sync OpenAPI specs
|
|
uses: readmeio/rdme@8.6.6
|
|
env:
|
|
README_API_KEY: ${{ secrets.README_API_KEY }}
|
|
README_API_DEFINITION_ID: ${{ steps.openapi-specs.outputs.id }}
|
|
with:
|
|
rdme: openapi openapi.json --key="$README_API_KEY" --id="$README_API_DEFINITION_ID"
|