diff options
Diffstat (limited to '.github/workflows/presubmit.yml')
-rw-r--r-- | .github/workflows/presubmit.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index 0ab4f4f43..9a4b8d698 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -1,11 +1,20 @@ name: Presubmit checks -on: [pull_request] + +on: + pull_request: + branches: + - master jobs: build: runs-on: ubuntu-latest steps: + - name: Cancel previous + uses: styfle/cancel-workflow-action@0.8.0 + with: + access_token: ${{ github.token }} + - uses: actions/checkout@v2 - run: | # Needed for git diff to work. git fetch origin master --depth 1 |