name: RuboCop
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: RuboCop Linter
      uses: andrewmcodes/rubocop-linter-action@v2.0.0
      with:
        version: '0.61.0'
        additional_gems: ''
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

name: RuboCop
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - uses: actions/setup-ruby@v1
      with:
        ruby-version: 2.6.x
    - run: gem install rubocop:0.61.0
    - run: rubocop --parallel

Make the RuboCop action a simple GitHub Action
Make the RuboCop action a simple GitHub Action

* It seems the checks API does not work yet for Pull Requests from forks:
  https://github.com/andrewmcodes/rubocop-linter-action/issues/68
