We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 280ccd1 + 5b4904f commit 7ec29bcCopy full SHA for 7ec29bc
.github/workflows/checks.yml
@@ -83,14 +83,23 @@ jobs:
83
runs-on: ubuntu-latest
84
steps:
85
- uses: actions/checkout@v2
86
+ - name: Get changed files
87
+ id: changed-files
88
+ uses: tj-actions/changed-files@v39
89
+ with:
90
+ files: |
91
+ **/*.rb
92
- name: Set up Ruby
93
+ if: steps.changed-files.outputs.any_changed == 'true'
94
uses: ruby/setup-ruby@v1
95
with:
96
ruby-version: ${{ env.RUBY_VERSION }}
97
- name: Install dependencies
98
99
run: bundle install
100
- name: Run RuboCop
- run: bundle exec rake rubocop
101
102
+ run: bundle exec rubocop ${{ steps.changed-files.outputs.all_changed_files }}
103
104
tests:
105
permissions: write-all
0 commit comments