Skip to content

Commit

Permalink
ci: migrate to Github Actions Concurrency for cancelling workflows (#328
Browse files Browse the repository at this point in the history
)

* 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 <[email protected]>
  • Loading branch information
renovate-bot and parthea authored Jul 15, 2022
1 parent ed353aa commit 02ddf17
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v4
Expand All @@ -29,10 +29,6 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v4
Expand All @@ -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/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
Expand Down

0 comments on commit 02ddf17

Please sign in to comment.