From 8580e66d6044997b1e45ca891d246d3a11d44605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Redzy=C5=84ski?= Date: Fri, 8 Oct 2021 17:03:07 +0200 Subject: [PATCH] gha: move cancelaltion into other workflows (#6771) --- .github/workflows/benchmarks.yaml | 11 ++++------- .github/workflows/tests.yaml | 7 ++----- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/benchmarks.yaml b/.github/workflows/benchmarks.yaml index 1d443b9e6..79388aaca 100644 --- a/.github/workflows/benchmarks.yaml +++ b/.github/workflows/benchmarks.yaml @@ -2,13 +2,6 @@ name: benchmarks on: [pull_request, workflow_dispatch] jobs: - cancel_previous: - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} bench: name: run benchmarks runs-on: ${{ matrix.os }} @@ -17,6 +10,10 @@ jobs: matrix: os: [ubuntu-18.04] steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} - uses: actions/setup-python@v2 with: python-version: 3.7 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index f8ce02678..ef2cae2f7 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -12,17 +12,14 @@ env: SHELL: /bin/bash jobs: - cancel_previous: + lint: + timeout-minutes: 10 runs-on: ubuntu-latest steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} - lint: - timeout-minutes: 10 - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2.3.4 - name: Set up Python 3.8 uses: actions/setup-python@v2.2.2