diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c808988..c353fd7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,15 +30,11 @@ name: Check on: [push, pull_request] -jobs: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/pyspinel' && github.run_id) || github.ref }} + cancel-in-progress: true - cancel-previous-runs: - runs-on: ubuntu-20.04 - steps: - - uses: rokroskar/workflow-run-cleanup-action@master - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - if: "github.ref != 'refs/heads/master'" +jobs: pretty: runs-on: ubuntu-20.04