From 02ddf179f0300f7b036dc19a0b28bb482e2557c6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Jul 2022 14:33:57 +0200 Subject: [PATCH] ci: migrate to Github Actions Concurrency for cancelling workflows (#328) * chore(deps): update styfle/cancel-workflow-action action to v0.10.0 * ci: migrate to Github Actions Concurrency for cancelling workflows Co-authored-by: Anthonios Partheniou --- .github/workflows/tests.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index eff0c8ff..88044988 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,14 +9,14 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +concurrency: + group: tests-${{ github.head_ref }} + cancel-in-progress: true + jobs: style-check: runs-on: ubuntu-latest steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - uses: actions/checkout@v2 - name: Set up Python 3.8 uses: actions/setup-python@v4 @@ -29,10 +29,6 @@ jobs: docs: runs-on: ubuntu-latest steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - uses: actions/checkout@v2 - name: Set up Python 3.8 uses: actions/setup-python@v4 @@ -49,10 +45,6 @@ jobs: python: ['3.6', '3.7', '3.8', '3.9', '3.10'] variant: ['', 'cpp', 'upb'] steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python }} uses: actions/setup-python@v4