From 10d24cd1c30caef22c1f28c572594f850cc94d7b Mon Sep 17 00:00:00 2001 From: Denis Tingajkin Date: Thu, 8 Oct 2020 18:15:39 +0700 Subject: [PATCH] add cancel for previous workflow Signed-off-by: Denis Tingajkin --- .github/workflows/ci.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 33322b21c..d3c15cfe8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -97,11 +97,6 @@ jobs: run: | git diff -- '*.pb.go' || ( echo "Rerun go generate ./... locally and resubmit" && false ) git diff -- '*.gen.go' || ( echo "Rerun go generate ./... locally and resubmit" && false ) - captureRunEnv: - name: Capture CI Run Env - runs-on: ubuntu-latest - steps: - - run: printenv automerge: name: automerge runs-on: ubuntu-latest @@ -126,6 +121,10 @@ jobs: kind: runs-on: ubuntu-latest steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.5.0 + with: + access_token: ${{ github.token }} - uses: actions/checkout@master - uses: engineerd/setup-kind@v0.4.0 with: