fix(repository.lic): v2.70 check for proper version format (#2193) #1090
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: Rubocop | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'scripts/**' | |
| - 'type_data/migrations/**' | |
| pull_request: | |
| paths: | |
| - 'scripts/**' | |
| - 'type_data/migrations/**' | |
| jobs: | |
| rubocop: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby: ['3.3'] | |
| name: Run Rubocop on Ruby ${{ matrix.ruby }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed files | |
| id: changed-files | |
| uses: step-security/changed-files@95b56dadb92a30ca9036f16423fd3c088a71ee94 # v46.0.5 | |
| with: | |
| files: | | |
| **/*.lic | |
| **/*.rb | |
| - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Rubocop | |
| run: | | |
| for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
| bundle exec rubocop $file | |
| done |