summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-03-11 17:40:11 -0800
committergVisor bot <gvisor-bot@google.com>2021-03-11 17:40:11 -0800
commitcda7d5d44a9c923118f5e791a487b7f5996988b9 (patch)
tree8a9fae107be0e3cd13d1b20051f0ac450d5f196b
parentdf64c3a60f439dec81fd7c96690318588520eb87 (diff)
parent449913e65514a629b40e37e4ebbb0fe310276e94 (diff)
Merge pull request #5654 from sethvargo:sethvargo/cancel
PiperOrigin-RevId: 362416183
-rw-r--r--.github/workflows/build.yml4
-rw-r--r--.github/workflows/go.yml4
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b0381a563..b572dc94f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -16,6 +16,10 @@ jobs:
default:
runs-on: ubuntu-latest
steps:
+ - name: Cancel previous
+ uses: styfle/cancel-workflow-action@0.7.0
+ with:
+ access_token: ${{ github.token }}
- uses: actions/checkout@v2
- run: make
- run: make build OPTIONS="--build_tag_filters nogo" TARGETS="//..."
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 594dc7ffc..4c8b8ea5c 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -16,6 +16,10 @@ jobs:
generate:
runs-on: ubuntu-latest
steps:
+ - name: Cancel previous
+ uses: styfle/cancel-workflow-action@0.7.0
+ with:
+ access_token: ${{ github.token }}
- id: setup
run: |
if ! [[ -z "${{ secrets.GO_TOKEN }}" ]]; then