name: build

on:
  push:
    branches:
      - master
      - github_action
  pull_request:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Build dependencies
        run: |
          ./mcrouter/scripts/install_ubuntu_20.04.sh "$(pwd)"/mcrouter-install deps
      - name: Build mcrouter
        run: |
          mkdir -p "$(pwd)"/mcrouter-install/install
          ./mcrouter/scripts/install_ubuntu_20.04.sh "$(pwd)"/mcrouter-install mcrouter

name: build

on:
  push:
    branches:
      - main
      - github_action
  pull_request:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Build dependencies
        run: |
          ./mcrouter/scripts/install_ubuntu_20.04.sh "$(pwd)"/mcrouter-install deps
      - name: Build mcrouter
        run: |
          mkdir -p "$(pwd)"/mcrouter-install/install
          ./mcrouter/scripts/install_ubuntu_20.04.sh "$(pwd)"/mcrouter-install mcrouter

Update defaul branch for github action
Update defaul branch for github action

Summary: Changing the branch triggering github action CI, as default branch changed from master to main.

Reviewed By: stuclar

Differential Revision: D31035490

fbshipit-source-id: 57bcb582ae4c3b4615c801ec295b2ea46c46b494
