-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
ed353aa
commit 02ddf17
Showing
1 changed file
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|