diff options
author | Jonathan Hui <jonhui@google.com> | 2022-09-16 08:45:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-16 08:45:03 -0700 |
commit | ae91fec5d551ffdd4640d4aac6b303d194ca862a (patch) | |
tree | 8562acbc14398ee26a5001a4f524ae5635455842 /.github/workflows/build.yml | |
parent | ab42b5b4932622d8c7e9e4e054fbb450c6b6ebde (diff) | |
download | ot-br-posix-ae91fec5d551ffdd4640d4aac6b303d194ca862a.tar.gz |
[github-actions] use `concurrency` feature to cancel outstanding jobs (#1535)
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29cf0a0b..ae395674 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,15 +36,11 @@ on: branches: - 'main' -jobs: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/ot-br-posix' && 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/main'" +jobs: pretty: runs-on: ubuntu-20.04 |