diff --git a/.github/workflows/bindings_ci.yml b/.github/workflows/bindings_ci.yml index f02eb6dd67b..1c6e22fcefb 100644 --- a/.github/workflows/bindings_ci.yml +++ b/.github/workflows/bindings_ci.yml @@ -12,6 +12,10 @@ on: - synchronize - ready_for_review +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: CARGO_TERM_COLOR: always MATRIX_SDK_CRYPTO_NODEJS_PATH: bindings/matrix-sdk-crypto-nodejs @@ -29,7 +33,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Install Protoc uses: arduino/setup-protoc@v1 @@ -196,7 +200,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 # install protoc in case we end up rebuilding opentelemetry-proto - name: Install Protoc diff --git a/.github/workflows/cancel_others.yml b/.github/workflows/cancel_others.yml deleted file mode 100644 index 0f1227f0622..00000000000 --- a/.github/workflows/cancel_others.yml +++ /dev/null @@ -1,13 +0,0 @@ -on: - pull_request: - branches: [main] - -jobs: - cancel-others: - runs-on: ubuntu-latest - steps: - - name: Cancel workflows for older commits - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: all - all_but_latest: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd6f282ca27..643e3db6899 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,10 @@ on: - synchronize - ready_for_review +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: CARGO_TERM_COLOR: always @@ -40,7 +44,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Install Rust uses: dtolnay/rust-toolchain@stable @@ -145,7 +149,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Install Protoc uses: arduino/setup-protoc@v1 @@ -153,15 +157,15 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} # Can't use `${{ matrix.* }}` inside uses - - name: Install Rust + - name: Install Rust stable if: matrix.rust == 'stable' uses: dtolnay/rust-toolchain@stable - - name: Install Rust + - name: Install Rust beta if: matrix.rust == 'beta' uses: dtolnay/rust-toolchain@beta - - name: Install Rust + - name: Install Rust nightly if: matrix.rust == 'nightly' uses: dtolnay/rust-toolchain@nightly @@ -274,7 +278,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Install Rust uses: dtolnay/rust-toolchain@stable diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 70fa8f056ab..8680117ef32 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: CARGO_TERM_COLOR: always diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 393b190fa33..b6bad5b95e6 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -5,6 +5,10 @@ on: branches: [main] pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: docs: name: All crates diff --git a/.github/workflows/xtask.yml b/.github/workflows/xtask.yml index c31f720d534..aa4303f6dc4 100644 --- a/.github/workflows/xtask.yml +++ b/.github/workflows/xtask.yml @@ -43,7 +43,7 @@ jobs: steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Calculate cache key id: cachekey