Skip to content

Implement Choria Transport (Phases 1 and 2) #870

Implement Choria Transport (Phases 1 and 2)

Implement Choria Transport (Phases 1 and 2) #870

Workflow file for this run

---
name: Schemas
on:
pull_request: {}
push:
branches:
- main
permissions:
contents: read
jobs:
generate:
name: Generate
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Generate schemas
run: bundle exec rake schemas:all
- name: Compare changes
run: |
if git diff --quiet; then
echo 'Did not detect changes to JSON schemas'
exit 0
else
echo 'Detected changes to JSON schemas. Run schema generation task and commit changes:
bundle exec rake schemas:all'
exit 1
fi