From 189c381d7f2c4a9e6f5a5d698a006da22a774c56 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Fri, 12 Mar 2021 14:21:14 -0800 Subject: [PATCH] Improve GitHub Actions hygiene context: unknown commit, https://github.com/google/go-github/pull/1821 PiperOrigin-RevId: 362600035 --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14d29b090..f5fced4bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,13 @@ name: CI -on: [ push, pull_request ] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: test: @@ -40,6 +46,10 @@ jobs: runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} steps: + - name: Cancel previous + uses: styfle/cancel-workflow-action@0.8.0 + with: + access_token: ${{ github.token }} - name: 'Check out repository' uses: actions/checkout@v2 - name: 'Cache local Maven repository'