Fix typo in CONTRIBUTING.md a672c54642ee57c152a5a8b21444c2afbbcec24a into main from v5.1 #5168
Workflow file for this run
This file contains hidden or 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: Lint | |
| on: | |
| pull_request_target: | |
| workflow_dispatch: | |
| merge_group: | |
| permissions: | |
| contents: write | |
| checks: write | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Setup Ruby | |
| uses: ruby/[email protected] | |
| with: | |
| bundler-cache: true | |
| - name: Run RuboCop with auto-correct | |
| run: | | |
| bundle exec rubocop -A | |
| - name: Check for changes | |
| id: changes | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| if git status --porcelain | grep .; then | |
| echo "changes=true" >> $GITHUB_ENV | |
| else | |
| echo "changes=false" >> $GITHUB_ENV | |
| fi | |
| - name: Commit and push changes | |
| if: env.changes == 'true' | |
| run: | | |
| git add . | |
| git commit -m "chore: auto-corrected with RuboCop" | |
| git push |