name: Build

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
        ruby: ['2.5', '2.6', '2.7']
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby versions
      uses: actions/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Build and test with Rake
      run: |
        gem install bundler:1.16.1
        bundle install --jobs 4 --retry 3
        bundle exec rake

name: Build

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
        ruby: ['2.5', '2.6', '2.7']
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby versions
      uses: actions/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Build and test with Rake
      run: |
        gem install bundler:1.16.1
        bundle install --jobs 4 --retry 3
        bundle exec rake

Update branch name in Github action
Update branch name in Github action
