Skip to content

Commit

Permalink
Update schemas.yml to use main 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 a9df564 commit 870e16f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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 || 'v1.x' }}
HAYSTACK_REF: ${{ github.event.client_payload.ref || inputs.ref || 'main' }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

jobs:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
if [ "${HAYSTACK_REF}" != "v1.x" ]; then
if [ "${HAYSTACK_REF}" != "main" ]; then
git restore --staged --worktree json-schema/haystack-pipeline-main.schema.json
fi
git commit -m "Update Schema for ${HAYSTACK_REF}" -a || echo "No changes to commit"
Expand Down

0 comments on commit 870e16f

Please sign in to comment.