Skip to content

Rubcop fixes

Rubcop fixes #804

Workflow file for this run

name: Schemas
on:
pull_request:
types: [opened, reopened, edited, synchronize]
paths:
- lib/bolt/config/options.rb
- lib/bolt/config/transport/**
- lib/bolt/inventory/options.rb
- rakelib/schemas.rake
- schemas/*.json
jobs:
generate:
name: Generate
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Update gems
run: bundle update
- 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