name: CI

on:
  push:
    branches:
      - $default_branch
    paths-ignore:
     - 'README.md'

  pull_request:
    branches: 
      - $default_branch
    paths-ignore:
      - 'README.md'

jobs:
  test:
    if: "contains(github.event.commits[0].message, '[ci skip]') == false"
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: ['2.6', '2.7', '3.0']
        gemfile:
          - gemfiles/Gemfile.rails-5.0.0
          - gemfiles/Gemfile.rails-6.0.0

    steps:
      - uses: actions/checkout@v2
        name: Set up Ruby

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}
          bundler-cache: true

      - name: Run tests
        run: bundle exec rake

name: CI

on:
  push:
    branches:
      - master
    paths-ignore:
     - 'README.md'

  pull_request:
    branches: 
      - master
    paths-ignore:
      - 'README.md'

jobs:
  test:
    if: "contains(github.event.commits[0].message, '[ci skip]') == false"
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: ['2.6', '2.7', '3.0']
        gemfile:
          - gemfiles/Gemfile.rails-5.0.0
          - gemfiles/Gemfile.rails-6.0.0

    steps:
      - uses: actions/checkout@v2
        name: Set up Ruby

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}
          bundler-cache: true

      - name: Run tests
        run: bundle exec rake

Change branch to master in CI workflow
Change branch to master in CI workflow