add shell-command and tty support to the LXD transport #792
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-latest | |
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 |