summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml4
-rw-r--r--.github/workflows/go.yml5
2 files changed, 9 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..9432f1137 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -16,6 +16,11 @@ jobs:
generate:
runs-on: ubuntu-latest
steps:
+ - name: Cancel previous
+ uses: styfle/cancel-workflow-action@0.7.0
+ with:
+ access_token: ${{ github.token }}
+ if: ${{github.ref != 'refs/head/main'}}
- id: setup
run: |
if ! [[ -z "${{ secrets.GO_TOKEN }}" ]]; then