Skip to content

Commit

Permalink
Merge pull request #86 from altendky/patch-3
Browse files Browse the repository at this point in the history
use GitHub provided concurrency limiting
  • Loading branch information
sergey-dryabzhinsky authored Dec 1, 2022
2 parents 2251ec2 + c727bc5 commit e9c5110
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Build wheels

on: [push, pull_request]

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.sha || '' }}
cancel-in-progress: true

jobs:
build_wheels:
name: Build wheel on ${{ matrix.os }}
Expand All @@ -12,12 +16,6 @@ jobs:
os: [macos-10.15, ubuntu-latest, windows-latest]

steps:
- name: Cancel previous runs on the same branch
if: ${{ github.ref != 'refs/heads/master' }}
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

- name: Checkout code
uses: actions/checkout@v2
with:
Expand Down

0 comments on commit e9c5110

Please sign in to comment.