Skip to content

Commit

Permalink
Update schemas.yml to use a different var when looking for docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanSara authored Dec 19, 2023
1 parent 870e16f commit e19bab4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
types: [generate-pipeline-schemas]

env:
HAYSTACK_REF: ${{ github.event.client_payload.ref || inputs.ref || 'main' }}
HAYSTACK_REF: ${{ github.event.client_payload.ref || inputs.ref || 'v1.x' }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

jobs:
Expand All @@ -40,8 +40,14 @@ jobs:
- if: steps.validate.outcome == 'success'
name: Update schema
run: |
if [ "${HAYSTACK_REF}" == "v1.x" ]; then
export HAYSTACK_REF="main"
fi
docker run -t -v "${PWD}:/haystack-json-schema" "docker.io/deepset/haystack:base-cpu-${HAYSTACK_REF}" python /haystack-json-schema/.github/utils/generate_json_schema.py
if [ "${HAYSTACK_REF}" == "main" ]; then
export HAYSTACK_REF="v1.x"
fi
- if: steps.validate.outcome == 'success'
name: Commit files
run: |
Expand Down

0 comments on commit e19bab4

Please sign in to comment.