diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54fb39bd8..547977f3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,15 +30,11 @@ name: Build on: [push, pull_request] -jobs: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && 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 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 339bb1a09..534dcf7c4 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -30,15 +30,11 @@ name: Docker on: [push, pull_request] -jobs: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && 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: buildx: name: buildx-${{ matrix.docker_name }} diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 8f549c505..bce537431 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -27,7 +27,13 @@ # name: CIFuzz + on: [pull_request] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && github.run_id) || github.ref }} + cancel-in-progress: true + jobs: Fuzzing: runs-on: ubuntu-20.04 diff --git a/.github/workflows/makefile-check.yml b/.github/workflows/makefile-check.yml index 37e80243c..4f9556727 100644 --- a/.github/workflows/makefile-check.yml +++ b/.github/workflows/makefile-check.yml @@ -30,15 +30,11 @@ name: Makefile Check on: [push, pull_request] -jobs: - 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'" +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && github.run_id) || github.ref }} + cancel-in-progress: true +jobs: makefile-check: runs-on: ubuntu-20.04 steps: diff --git a/.github/workflows/otbr.yml b/.github/workflows/otbr.yml index 6f9412b86..4e7d899cc 100644 --- a/.github/workflows/otbr.yml +++ b/.github/workflows/otbr.yml @@ -30,15 +30,11 @@ name: Border Router on: [push, pull_request] -jobs: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && 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: backbone-router: runs-on: ubuntu-20.04 diff --git a/.github/workflows/otci.yml b/.github/workflows/otci.yml index a1e3a9b99..1a88ee686 100644 --- a/.github/workflows/otci.yml +++ b/.github/workflows/otci.yml @@ -30,15 +30,11 @@ name: OTCI on: [push, pull_request] -jobs: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && 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: cli-sim: name: cli-sim VIRTUAL_TIME=${{ matrix.virtual_time }} diff --git a/.github/workflows/otns.yml b/.github/workflows/otns.yml index 46dc33c65..a916a6e01 100644 --- a/.github/workflows/otns.yml +++ b/.github/workflows/otns.yml @@ -30,6 +30,10 @@ name: OTNS on: [push, pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && github.run_id) || github.ref }} + cancel-in-progress: true + env: COVERAGE: 1 REFERENCE_DEVICE: 1 @@ -40,14 +44,6 @@ env: jobs: - 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'" - unittests: name: Unittests runs-on: ubuntu-20.04 diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 1d72ec5c8..552db037c 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -30,15 +30,11 @@ name: POSIX on: [push, pull_request] -jobs: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && 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: expects-linux: runs-on: ubuntu-20.04 diff --git a/.github/workflows/simulation-1.1.yml b/.github/workflows/simulation-1.1.yml index 3fadd17aa..e3c269c07 100644 --- a/.github/workflows/simulation-1.1.yml +++ b/.github/workflows/simulation-1.1.yml @@ -30,15 +30,11 @@ name: Simulation 1.1 on: [push, pull_request] -jobs: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && 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: distcheck: runs-on: ubuntu-20.04 diff --git a/.github/workflows/simulation-1.2.yml b/.github/workflows/simulation-1.2.yml index 26166466d..d099110ab 100644 --- a/.github/workflows/simulation-1.2.yml +++ b/.github/workflows/simulation-1.2.yml @@ -30,15 +30,11 @@ name: Simulation 1.3 on: [push, pull_request] -jobs: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && 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: thread-1-3: name: thread-1-3-${{ matrix.compiler.c }}-${{ matrix.arch }} diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index 763fb4584..2fae6778e 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -30,15 +30,11 @@ name: Size on: [push, pull_request] -jobs: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && 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: size-report: runs-on: ubuntu-20.04 diff --git a/.github/workflows/toranj.yml b/.github/workflows/toranj.yml index 8af954d8b..8339046b6 100644 --- a/.github/workflows/toranj.yml +++ b/.github/workflows/toranj.yml @@ -30,15 +30,11 @@ name: Toranj on: [push, pull_request] -jobs: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && 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: toranj-ncp: name: toranj-ncp-${{ matrix.TORANJ_RADIO }} diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 37b110ca8..6246f2081 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -30,15 +30,11 @@ name: API Version on: [pull_request] -jobs: - 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'" +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && github.run_id) || github.ref }} + cancel-in-progress: true +jobs: api-version: runs-on: ubuntu-20.04 steps: